fog-vsphere 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d30a391d089effa12a3ce332e51dbaa45ef22fc
4
- data.tar.gz: 3d2ae5f7f2d377f2f9ccb7fc174e6ffad86eea23
3
+ metadata.gz: a41dcddbd253d7a283516616e9629c250514efdf
4
+ data.tar.gz: fe208ed9241821c5dacda6c9e64fe337bbc80aa3
5
5
  SHA512:
6
- metadata.gz: 421b024fe77dad72a17dfc72e373ccd989b6b834d65b3315f7d181628be8bff9a2956421bf78497558d83183dfc0a08276380199821b44d88218527d465ce840
7
- data.tar.gz: b305b9c8afdeed0d9631b04eed403250d4a36167ebbc306b30122cf84809e7b0c694c2b3b218ddbb04a61b2acc2473af2600a06538c085633f5a17e8042bf854
6
+ metadata.gz: 02fcd85cbfa0c3969a28f8bfe548e8093221f9ca9411158686070cbbcf771e379968dd613ad518c3992ab8e41d654bbf9e19c6648938c9c076da98282881eb6c
7
+ data.tar.gz: d36ab2e35554596c3808b5b799e4d120fb19f85777d74eec9d70b61eda122389d02d21d1b75e1741442acdcfadc0be00fef83df3df2dd2bb24cfdb4bae4eb4be
@@ -1,7 +1,12 @@
1
+ ## v0.8.1 7/28/2016
2
+
3
+ * Fixed bug with errant hash access for customspec
4
+
1
5
  ## v0.8.0 6/15/2016
2
6
 
3
7
  * List hosts in a cluster
4
8
  * Deploy VM on a specific cluster
9
+ * Add cluster storage and network filter
5
10
 
6
11
  ## v0.7.0 5/16/2016
7
12
 
@@ -18,6 +18,7 @@
18
18
  * J.R. Garcia <jr@garciaole.com>
19
19
  * J.R. Garcia <jrg@vmware.com>
20
20
  * James Herdman <james.herdman@me.com>
21
+ * Jason Berry <jason.berry@csgi.com>
21
22
  * Jeff McCune <jeff@puppetlabs.com>
22
23
  * Justin Clayton <justin.clayton@gettyimages.com>
23
24
  * Justin Pratt <github@justinpratt.me>
@@ -268,21 +268,20 @@ module Fog
268
268
  custom_spec['globalIPSettings']=Hash.new unless custom_spec.key?('globalIPSettings')
269
269
  custom_spec['globalIPSettings']['dnsServerList'] = custom_spec['ipsettings']['dnsServerList'] if custom_spec['ipsettings'].key?('dnsServerList')
270
270
  custom_spec['globalIPSettings']['dnsSuffixList'] = custom_spec['dnsSuffixList'] || [custom_spec['domain']] if ( custom_spec['dnsSuffixList'] || custom_spec['domain'])
271
+ if (custom_spec['ipsettings'].key?('ip') or custom_spec['ipsettings'].key?('gateway') or custom_spec['ipsettings'].key?('subnetMask') or custom_spec['ipsettings'].key?('domain') or custom_spec['ipsettings'].key?('dnsServerList'))
272
+ if custom_spec['ipsettings'].key?('ip') and !custom_spec["ipsettings"].key?("subnetMask")
273
+ raise ArgumentError, "subnetMask is required for static ip"
274
+ end
275
+ custom_spec['nicSettingMap']=Array.new unless custom_spec.key?('nicSettingMap')
276
+ custom_spec['nicSettingMap'][0]=Hash.new unless custom_spec['nicSettingMap'].length > 0
277
+ custom_spec['nicSettingMap'][0]['adapter']=Hash.new unless custom_spec['nicSettingMap'][0].key?('adapter')
278
+ custom_spec['nicSettingMap'][0]['adapter']['ip'] = custom_spec['ipsettings']['ip'] if custom_spec['ipsettings'].key?('ip')
279
+ custom_spec['nicSettingMap'][0]['adapter']['gateway'] = custom_spec['ipsettings']['gateway'] if custom_spec['ipsettings'].key?('gateway')
280
+ custom_spec['nicSettingMap'][0]['adapter']['subnetMask'] = custom_spec['ipsettings']['subnetMask'] if custom_spec['ipsettings'].key?('subnetMask')
281
+ custom_spec['nicSettingMap'][0]['adapter']['dnsDomain'] = custom_spec['ipsettings']['domain'] if custom_spec['ipsettings'].key?('domain')
282
+ custom_spec['nicSettingMap'][0]['adapter']['dnsServerList'] = custom_spec['ipsettings']['dnsServerList'] if custom_spec['ipsettings'].key?('dnsServerList')
283
+ end
271
284
  end
272
-
273
- if (custom_spec['ipsettings'].key?('ip') or custom_spec['ipsettings'].key?('gateway') or custom_spec['ipsettings'].key?('subnetMask') or custom_spec['ipsettings'].key?('domain') or custom_spec['ipsettings'].key?('dnsServerList'))
274
- if custom_spec['ipsettings'].key?('ip')
275
- raise ArgumentError, "subnetMask is required for static ip" unless custom_spec["ipsettings"].key?("subnetMask")
276
- end
277
- custom_spec['nicSettingMap']=Array.new unless custom_spec.key?('nicSettingMap')
278
- custom_spec['nicSettingMap'][0]=Hash.new unless custom_spec['nicSettingMap'].length > 0
279
- custom_spec['nicSettingMap'][0]['adapter']=Hash.new unless custom_spec['nicSettingMap'][0].key?('adapter')
280
- custom_spec['nicSettingMap'][0]['adapter']['ip'] = custom_spec['ipsettings']['ip'] if custom_spec['ipsettings'].key?('ip')
281
- custom_spec['nicSettingMap'][0]['adapter']['gateway'] = custom_spec['ipsettings']['gateway'] if custom_spec['ipsettings'].key?('gateway')
282
- custom_spec['nicSettingMap'][0]['adapter']['subnetMask'] = custom_spec['ipsettings']['subnetMask'] if custom_spec['ipsettings'].key?('subnetMask')
283
- custom_spec['nicSettingMap'][0]['adapter']['dnsDomain'] = custom_spec['ipsettings']['domain'] if custom_spec['ipsettings'].key?('domain')
284
- custom_spec['nicSettingMap'][0]['adapter']['dnsServerList'] = custom_spec['ipsettings']['dnsServerList'] if custom_spec['ipsettings'].key?('dnsServerList')
285
- end
286
285
  end
287
286
  ### End of backwards compatability
288
287
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core