UCSAPI 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/UCSAPI.rb +5 -7
  2. metadata +2 -2
@@ -34,7 +34,7 @@ module UCSAPI
34
34
  require_relative 'Nuova'
35
35
  require_relative 'UCSMO'
36
36
 
37
- VERSION = '0.0.8'
37
+ VERSION = '0.0.9'
38
38
 
39
39
  class UCS
40
40
 
@@ -80,7 +80,7 @@ module UCSAPI
80
80
 
81
81
  classId = 'networkElement'
82
82
  if opts[:dn]
83
- element = @api.configResolveDn( :dn => dn)
83
+ element = @api.configResolveDn( :dn => opts[:dn])
84
84
  found = Fabric.create(@api,element)
85
85
  elsif opts[:id] then
86
86
  dn = 'sys/switch-' + opts[:id]
@@ -96,13 +96,11 @@ module UCSAPI
96
96
  found
97
97
  end
98
98
 
99
- def fabrics
99
+ def fabrics(opts={})
100
100
  @log.info("fabrics started")
101
101
 
102
- classId = 'networkElement'
103
- elements = @api.configResolveClass( :classId => classId)
104
- found = FabricArray.create(@api,elements)
105
-
102
+ found = fabric(opts)
103
+
106
104
  @log.info("fabrics ended")
107
105
  found
108
106
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Steve Chambers