mcollective-client 2.10.0 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWEwMDY2OTlmMTkwOWM4NGRjODVmYzQzMTk1ZGJmN2M4MDA0MTdlZg==
4
+ MTk1NWFkMGY2NTY0ODA4MTQ2ZDg2YTA1YjA4N2M5YTcwODJlZTUzZQ==
5
5
  data.tar.gz: !binary |-
6
- MjAyNjQ5NDQxZTE1MmM1NzEwODcwMDU1MTQzNGVlNmNhYjdkZDcyMw==
6
+ ZmJhNGZlZmQxZDA1ZjI5ZTg3Y2Q2MDJiMDljNzRmZTEzNjNhOTE2NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjNjZWZiZjIzMTk5ODE1ZTNkZDVmYThhMGNmNzFhNzY4ZGViMGJiNWU0OGU3
10
- MDcyMTlhNjEyZDI3ZGZiMjE4YzVjNzk2OTVkOGY2ZDdlZjg5MTFjNTcwOWUx
11
- N2YzZDU4YTg1MThhZWEwZTVhYjQ4NTk1ZDNlZWU2ZTc0ODRhOWQ=
9
+ NDdlMjdkN2U2NDZhNzU5ZDgyYzczMzE1NTg3NTUyNGU0NWEyZWVjMGQ4Y2Y2
10
+ MzhiNjcwYTFiNjVkM2JmMTZhMDUzNGRkMzMwOGIyNTBiYjcwMTA0MzhjOWYz
11
+ NjhjMjliNTVkZmRiNTI0NzlhNmZiZDBhNWNkODlkODJkNDgyODI=
12
12
  data.tar.gz: !binary |-
13
- Mjc1NjBiNjJjNWMyYjljNDE0OWFiZmE3OWYwOGNmODEzZmE2ZmIxNWJhNDdk
14
- NzA0MmQ5ZmI3Y2JjYmI5ODIwMGE4NzcwMjNmZTdkOWJhYmRkOGJjZWVjN2Vk
15
- Njg2YzZiNGI2NThjYWQ2MjA4ZTA3NDUyNDA0M2FhOTgxYmI3MGE=
13
+ NDJkMmNkYjM2M2YwODAyNmIzYjcxODRkNDc2YmZjZjZkYmM4YTA4MWQ2NDM1
14
+ OTVjYmNhYzk3MmU5YjU4MDRiNzUxZWNkZTBlZWRmNWZlOWNkODI3MDc2ZTY3
15
+ YTYwNDNlMzc2YmVhN2NiMzc5NjZkNzgwYmRhNjAyMTNhMjk4ZWY=
data/lib/mcollective.rb CHANGED
@@ -59,7 +59,7 @@ module MCollective
59
59
 
60
60
  MCollective::Vendor.load_vendored
61
61
 
62
- VERSION="2.10.0"
62
+ VERSION="2.10.1"
63
63
 
64
64
  def self.version
65
65
  VERSION
@@ -284,6 +284,7 @@ module MCollective
284
284
  stat[:blocktime] = stat[:totaltime] - stat[:discoverytime]
285
285
  stat[:responses] = hosts_responded
286
286
  stat[:noresponsefrom] = []
287
+ stat[:unexpectedresponsefrom] = []
287
288
  stat[:requestid] = requestid
288
289
 
289
290
  @stats = stat
@@ -329,6 +330,17 @@ module MCollective
329
330
 
330
331
  puts
331
332
  end
333
+
334
+ if stats[:unexpectedresponsefrom].size > 0
335
+ puts("\nUnexpected response from:\n")
336
+
337
+ stats[:unexpectedresponsefrom].each do |c|
338
+ puts if c % 4 == 1
339
+ printf("%30s", c)
340
+ end
341
+
342
+ puts
343
+ end
332
344
  end
333
345
  end
334
346
  end
@@ -422,7 +422,8 @@ module MCollective
422
422
  :totaltime => 10.0,
423
423
  :responses => 5,
424
424
  :requestid => "erfs123",
425
- :noresponsefrom => [] }
425
+ :noresponsefrom => [],
426
+ :unexpectedresponsefrom => [] }
426
427
  end
427
428
 
428
429
  it "should update stats and return the stats hash" do
@@ -774,6 +774,7 @@ module MCollective
774
774
  msg.expects(:create_reqid).returns("823a3419a0975c3facbde121f72ab61f")
775
775
  msg.expects(:requestid=).with("823a3419a0975c3facbde121f72ab61f").times(10)
776
776
 
777
+ # These stat keys must match the values returned by a generic Client, or `--batch` will break.
777
778
  stats = {:noresponsefrom => [], :unexpectedresponsefrom => [], :responses => 0, :blocktime => 0, :totaltime => 0, :discoverytime => 0, :requestid => "823a3419a0975c3facbde121f72ab61f"}
778
779
 
779
780
  Message.expects(:new).with('req', nil, {:type => :direct_request, :agent => 'foo', :filter => nil, :options => {}, :collective => 'mcollective'}).returns(msg).times(10)
@@ -802,6 +803,7 @@ module MCollective
802
803
  msg.expects(:create_reqid).returns("823a3419a0975c3facbde121f72ab61f")
803
804
  msg.expects(:requestid=).with("823a3419a0975c3facbde121f72ab61f").times(10)
804
805
 
806
+ # These stat keys must match the values returned by a generic Client, or `--batch` will break.
805
807
  stats = {:noresponsefrom => [], :unexpectedresponsefrom => [], :responses => 0, :blocktime => 0, :totaltime => 0, :discoverytime => 0, :requestid => "823a3419a0975c3facbde121f72ab61f"}
806
808
 
807
809
  Progress.expects(:new).never
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcollective-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu