knife-vsphere 1.2.12 → 1.2.13
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/lib/chef/knife/vsphere_vm_clone.rb +2 -2
- data/lib/knife-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: 92495960a0105c5c704b19d8a0a74c0c88632391
|
|
4
|
+
data.tar.gz: bb30bd0c5d075f7b122231366c14d0d51da72bd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0bd94602e0ab3537796afe7b46bd7502e63b3b2e34d299136e95d11d79958e781afc8822bb03766915bef61d1016637d366f041edb269db0035f6dbc492d797
|
|
7
|
+
data.tar.gz: 964a90190d4d099458b929b5d69a00e82187d76b216a157a7393bea31ecc8f9d3d932fc58f2615eb060d05f0a7b93712bbbc67f9eba809e27347257199dc7701
|
|
@@ -549,7 +549,7 @@ class Chef::Knife::VsphereVmClone < Chef::Knife::BaseVsphereCommand
|
|
|
549
549
|
abort('Must specify VLANs with --cvlan when specifying switch UUIDs with --sw-uuids')
|
|
550
550
|
end
|
|
551
551
|
swuuid_list = if get_config(:customization_sw_uuid) == 'auto'
|
|
552
|
-
['auto'] * get_config(customization_ips).split(',').length
|
|
552
|
+
['auto'] * get_config(:customization_ips).split(',').length
|
|
553
553
|
else
|
|
554
554
|
get_config(:customization_sw_uuid).split(',').map { |swuuid| swuuid.gsub(/((\w+\s+){7})(\w+)\s+(.+)/, '\1\3-\4') }
|
|
555
555
|
end
|
|
@@ -578,7 +578,7 @@ class Chef::Knife::VsphereVmClone < Chef::Knife::BaseVsphereCommand
|
|
|
578
578
|
# not connected to a distibuted switch?
|
|
579
579
|
card.backing = RbVmomi::VIM::VirtualEthernetCardNetworkBackingInfo(network: network, deviceName: network.name)
|
|
580
580
|
end
|
|
581
|
-
card.macAddress = mac_list[index] if mac_list[index] != 'auto'
|
|
581
|
+
card.macAddress = mac_list[index] if get_config(:customization_macs) && mac_list[index] != 'auto'
|
|
582
582
|
dev_spec = RbVmomi::VIM.VirtualDeviceConfigSpec(device: card, operation: 'edit')
|
|
583
583
|
clone_spec.config.deviceChange.push dev_spec
|
|
584
584
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-vsphere
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ezra Pagel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: filesize
|