chef-metal-fogsphere 0.1.0.alpha.28 → 0.1.0.alpha.29

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: 0d12e46e616c03b0df0bd91b120daee150235bf8
4
- data.tar.gz: bdea990f0122cbc62e37f265401553c576114581
3
+ metadata.gz: d8584a3485e2f1daa9650a133fbc4e9ac319981e
4
+ data.tar.gz: f4b61cf96f8df48e2276774a53654af5b66c6a41
5
5
  SHA512:
6
- metadata.gz: ba3741cab22ace6d5cff983f9615d3cb13b913de4c2b9796564f4f495b278d35fc2f6fc9cc617e15067c3dc7469609e83f074971a3be31d99cee3a9860bb1291
7
- data.tar.gz: cebe4a219a82c38788e0ae25a5fba1ae713952e6fe17b1a4b3e0ac8d8113c12b2f1fc4fba969b145e07a3cbf13b34c990bd15e673ae6059b76db4b3f719c28ce
6
+ metadata.gz: 57232ffada55074c2804c0fe767b857d6d6587d05f266699c704ed331301bdcf0f3bef482dd4a82bb86c251fba440446ebdfa3e6026d783e46ecd606a0eaa77e
7
+ data.tar.gz: 9d296e7c2f979eb2d096b6c263c58f482de808f02a9838c897e405e02724e1c12918ad9639ecdb3bfb7be3a69701bdc029839be7e9fdcb7902eb6ba0c15fe2b5
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "chef-metal-fogsphere"
7
- gem.version = '0.1.0.alpha.28'
7
+ gem.version = '0.1.0.alpha.29'
8
8
  gem.license = 'Apache 2.0'
9
9
  gem.authors = ["Matt Wrock"]
10
10
  gem.email = ["matt@centurylinkcloud.com"]
data/lib/clc_driver.rb CHANGED
@@ -189,7 +189,12 @@ module ChefMetalVsphere
189
189
  Chef::Log.info "waiting for customizations to complete"
190
190
  sleep(30)
191
191
  Chef::Log.info "rebooting..."
192
- server.reboot
192
+ if server.tools_state == 'toolsNotRunning'
193
+ Chef::Log.info "tools have stopped. current power state is #{server.power_state} and tools state is #{server.tools_state}. powering up server..."
194
+ server.start
195
+ else
196
+ server.reboot
197
+ end
193
198
  end
194
199
  end
195
200
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-metal-fogsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.28
4
+ version: 0.1.0.alpha.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbvmomi