chef-provisioning-vsphere 0.5.7.dev4 → 0.5.7.dev5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c99341e65d9084e907c86d3cc7b7bda5084a38
|
4
|
+
data.tar.gz: 41a2f45c4acfa77c40d2e9581b887e2d776d62bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf050ba6da9b367ec9930a4202832e296529b033f23547abfe56417206909edfeb425ab352ba3f17918f5b0e20d30721a6a2b5b0e73b061fcf1ba5d3d75b9e6a
|
7
|
+
data.tar.gz: 6369e85397d54ffa852486b467c324ee424ec3b84ad88e02d35c12b754c3eb64f06771732502d556aa4f36e1c4d4ac3969743dbfe260c6eadcbbd39a750b0b17
|
@@ -55,9 +55,12 @@ module ChefProvisioningVsphere
|
|
55
55
|
host = vsphere_helper.find_host(options[:host])
|
56
56
|
rspec = RbVmomi::VIM.VirtualMachineRelocateSpec(host: host)
|
57
57
|
else
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
if options[:resource_pool]
|
59
|
+
pool = vsphere_helper.find_pool(options[:resource_pool])
|
60
|
+
else
|
61
|
+
pool = vm_template.resourcePool
|
62
|
+
end
|
63
|
+
rspec = RbVmomi::VIM.VirtualMachineRelocateSpec(pool: pool)
|
61
64
|
raise "either :host or :resource_pool must be specified \
|
62
65
|
when cloning from a VM Template" if pool.nil?
|
63
66
|
end
|