nv-client 1.66.0 → 1.66.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/bin/nv +5 -1
  3. data/lib/nv-client/version.rb +1 -1
  4. metadata +3 -3
data/README CHANGED
@@ -1,4 +1,4 @@
1
- version 1.66.0 of the nVentory ruby client.
1
+ version 1.66.1 of the nVentory ruby client.
2
2
 
3
3
  You'll need to create an /etc/nventory.conf or $HOME/.nventory.conf with at least the following parameter:
4
4
 
data/bin/nv CHANGED
@@ -407,7 +407,11 @@ if $nodegroup
407
407
  getdata[:includes] = ['child_groups', 'nodes']
408
408
  results = nvclient.get_objects(getdata)
409
409
  matches = results.keys.grep(/\b#{$nodegroup}\b/i)
410
- matches.size == 1 ? ( $nodegroup = matches.first ) : return
410
+ if matches.size == 1
411
+ $nodegroup = matches.first
412
+ else
413
+ abort "more than 1 nodegroup matched"
414
+ end
411
415
  puts "Child groups:"
412
416
  results[$nodegroup]['child_groups'].sort{|a,b| a['name'] <=> b['name']}.each do |child_group|
413
417
  puts " #{child_group['name']}"
@@ -1,5 +1,5 @@
1
1
  module Nv
2
2
  module Client
3
- VERSION = "1.66.0"
3
+ VERSION = "1.66.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 66
8
- - 0
9
- version: 1.66.0
8
+ - 1
9
+ version: 1.66.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Tran
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-01-19 00:00:00 -08:00
17
+ date: 2012-01-20 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency