mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
Fix no implicit conversion to rational from nil
Before this change if the boottime was nil, the check_ready loop would exit on Time.now - host['boottime'] with a TypeError in jruby. The boottime is nil when the power is Off so moving that check earlier should catch that bug.
This commit is contained in:
parent
be61501260
commit
f63f68ceab
2 changed files with 10 additions and 8 deletions
|
|
@ -322,6 +322,7 @@ EOT
|
|||
|
||||
context 'is turned off' do
|
||||
before(:each) do
|
||||
host['boottime'] = nil
|
||||
host['powerstate'] = 'PoweredOff'
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue