mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
changed return code of state to string instead of symbols to be consistent with aws provider
This commit is contained in:
parent
39ac0365c1
commit
bc08ae712c
1 changed files with 7 additions and 7 deletions
|
@ -252,18 +252,18 @@ module Fog
|
|||
|
||||
def state
|
||||
state=case @raw.info.state
|
||||
when 0 then :nostate
|
||||
when 1 then :running
|
||||
when 2 then :paused
|
||||
when 3 then :shuttingdown
|
||||
when 4 then :shutoff
|
||||
when 5 then :crashed
|
||||
when 0 then "nostate"
|
||||
when 1 then "running"
|
||||
when 2 then "paused"
|
||||
when 3 then "shuttingdown"
|
||||
when 4 then "shutoff"
|
||||
when 5 then "crashed"
|
||||
end
|
||||
return state
|
||||
end
|
||||
|
||||
def ready?
|
||||
state == :running
|
||||
state == "running"
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue