fog-vsphere 0.8.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CONTRIBUTORS.md +1 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +13 -14
- data/lib/fog/vsphere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a41dcddbd253d7a283516616e9629c250514efdf
|
|
4
|
+
data.tar.gz: fe208ed9241821c5dacda6c9e64fe337bbc80aa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02fcd85cbfa0c3969a28f8bfe548e8093221f9ca9411158686070cbbcf771e379968dd613ad518c3992ab8e41d654bbf9e19c6648938c9c076da98282881eb6c
|
|
7
|
+
data.tar.gz: d36ab2e35554596c3808b5b799e4d120fb19f85777d74eec9d70b61eda122389d02d21d1b75e1741442acdcfadc0be00fef83df3df2dd2bb24cfdb4bae4eb4be
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTORS.md
CHANGED
|
@@ -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
|
|
data/lib/fog/vsphere/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fog-core
|