clc-chef-metal-vsphere 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef_metal_vsphere/version.rb +1 -1
- data/lib/chef_metal_vsphere/vsphere_driver.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4482ae735ede1f628887684b44e15b39178281b5
|
4
|
+
data.tar.gz: 8540bf5d07117d19c1aad6a8863f1da27cf13a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045ddd241bef325e3d667835722b05b72e0cc87e184c600096d5ffc614b2f71fb8ce31096e8f3c3810a164cc267feecc4322ae26248ebb207b2da5ee72c3e03d
|
7
|
+
data.tar.gz: dec86ef60f2fa59f719c22aa5487a6e0e02e2b762954415a638035a8d007826e4bef6123d8290082304a6a4f826b27f05b9c26dd5eda39ada8a02d40aad3e415
|
@@ -164,11 +164,13 @@ module ChefMetalVsphere
|
|
164
164
|
bootstrap_options.each_pair { |key,value| description << " #{key}: #{value.inspect}" }
|
165
165
|
action_handler.report_progress description
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
167
|
+
vm = find_vm(bootstrap_options[:datacenter], bootstrap_options[:vm_folder], machine_spec.name)
|
168
|
+
server_id = nil
|
169
|
+
if vm
|
170
|
+
Chef::Log.info "machine already created: #{bootstrap_options[:vm_folder]}/#{machine_spec.name}"
|
171
|
+
else
|
172
|
+
vm = clone_vm(bootstrap_options)
|
173
|
+
end
|
172
174
|
|
173
175
|
machine_spec.location = {
|
174
176
|
'driver_url' => driver_url,
|