1
0
Fork 0
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:
Patrick Debois 2011-08-19 09:00:41 +02:00
parent 39ac0365c1
commit bc08ae712c

View file

@ -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