clc-chef-metal-vsphere 0.3.19 → 0.3.20

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: 004372fe9c9c3ad94b5e8dd7c0d586347fc6d67f
4
- data.tar.gz: c9dc1936c513c02464381c88c2c4998fe296550e
3
+ metadata.gz: 4c3973ec40c03e9e71b584570340a4e430f0b8b4
4
+ data.tar.gz: 12a687f5c9dfa2077b7cf4bb03be9216c0e7bac6
5
5
  SHA512:
6
- metadata.gz: 7006e23c8a7a3e86e0ceeda019a0f733c21e56aafad253d2ff57da20e62fe58d2539b37907c29bd6694d6dc26ca6ad9b14f3d585d3c2bff80fadb93bd72f2d8c
7
- data.tar.gz: 645a05ada0ef6142e3ec88ae558aa89dbff9bac379fb296eb3969b60696f2ff45c9957762c6139b58881c159c3836683712e3164c21b367e4b9c848e686f5b31
6
+ metadata.gz: 24a97ca603387b32230d046440fe098b53d921a99e825a7779a2d648d69244f510013c5ba4a0fa642e3c7011b89b4d2bfeb12bcfc5740d573d6ee771ba328357
7
+ data.tar.gz: a8cdc223b72bb45763acb5a593b9c01f31156d38e3f502252a4b85ba40cf468a07bf1e0eb329b65518eb2d5d4e46904a201d92a0e27c76ebacae18e694020b47
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.19'
2
+ VERSION = '0.3.20'
3
3
  end
@@ -199,8 +199,12 @@ module ChefMetalVsphere
199
199
 
200
200
  bootstrap_options = bootstrap_options_for(machine_spec, machine_options)
201
201
 
202
- transport = transport_for(machine_spec, machine_options, vm)
203
- if !transport.available?
202
+ transport = nil
203
+ if !ip_for(bootstrap_options, vm).nil?
204
+ transport = transport_for(machine_spec, machine_options, vm)
205
+ end
206
+
207
+ if transport.nil? || !transport.available?
204
208
  Chef::Log.info "waiting for customizations to complete"
205
209
  now = Time.now.utc
206
210
  until (Time.now.utc - now) > 45 || (!vm.guest.ipAddress.nil? && vm.guest.ipAddress.length > 0) do
@@ -485,7 +489,7 @@ module ChefMetalVsphere
485
489
  def ip_for(bootstrap_options, vm)
486
490
  if has_static_ip(bootstrap_options)
487
491
  bootstrap_options[:customization_spec][:ipsettings][:ip]
488
- else
492
+ else vm.guest.respond_to?('ipaddress')
489
493
  vm.guest.ipaddress
490
494
  end
491
495
  end
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.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud