chef-provisioning-vsphere 0.5.7.dev4 → 0.5.7.dev5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 250f8f464903ec4bbc35fcd6737505f4ff67bc2f
4
- data.tar.gz: ee2d7a263ed80827bec13a2797f8d824c182e882
3
+ metadata.gz: 71c99341e65d9084e907c86d3cc7b7bda5084a38
4
+ data.tar.gz: 41a2f45c4acfa77c40d2e9581b887e2d776d62bf
5
5
  SHA512:
6
- metadata.gz: bb1753e540bb3d2feb242a532ed856903204263d1dba4cbf189d48f83013f0df8472b8e27f66847649150104249c141a31c91c5ab6677d7bd63511a4d8e3c21d
7
- data.tar.gz: 757d92ffc2423a85e7a5edcf459ab0ab3e36653627d5d56e990a7dc71c02c9df104239b27a96af5a1ced503311058aee84f03072acc6fb0b03794bcef5835d28
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
- pool = vm_template.resourcePool
59
- vpool = vsphere_helper.find_pool(options[:resource_pool])
60
- rspec = RbVmomi::VIM.VirtualMachineRelocateSpec(pool: vpool || pool)
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
@@ -1,3 +1,3 @@
1
1
  module ChefProvisioningVsphere
2
- VERSION = '0.5.7.dev4'
2
+ VERSION = '0.5.7.dev5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7.dev4
4
+ version: 0.5.7.dev5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud