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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe331e4128b27e53d0c72452736f3ae651fafc44
4
- data.tar.gz: b5fb62b6fd123c8348ced5067ee122d124a70d12
3
+ metadata.gz: 4482ae735ede1f628887684b44e15b39178281b5
4
+ data.tar.gz: 8540bf5d07117d19c1aad6a8863f1da27cf13a4d
5
5
  SHA512:
6
- metadata.gz: 15973237344a53882facf5e6ffb12a7d78f18ba1e2873e3e5f67681ec93b53ab1b1e8a0d935dbcafa16dc7b410ba06a1958146132a4125ead2c3e6ba2120f268
7
- data.tar.gz: fe936bf2633196eefc976c5d730e8b44d1d6380bc289bf625d56b0cec79e21e0b0c03f7d96a337515fbe0d3fd4a3122ed482d069fbd361b5086575abf61d2745
6
+ metadata.gz: 045ddd241bef325e3d667835722b05b72e0cc87e184c600096d5ffc614b2f71fb8ce31096e8f3c3810a164cc267feecc4322ae26248ebb207b2da5ee72c3e03d
7
+ data.tar.gz: dec86ef60f2fa59f719c22aa5487a6e0e02e2b762954415a638035a8d007826e4bef6123d8290082304a6a4f826b27f05b9c26dd5eda39ada8a02d40aad3e415
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
@@ -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
- # TODO compare new options to existing and fail if we cannot change it
168
- # over (perhaps introduce a boolean that will force a delete and recreate
169
- # in such a case)
170
-
171
- vm = clone_vm(bootstrap_options)
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud