1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fix describe_instances stateReason handling

Before this the state_reason code was always 0 ('..'.to_i) and message
was lost
This commit is contained in:
Edward Muller 2012-11-15 18:47:31 -08:00
parent 6c1d734a57
commit 57679f4256

View file

@ -41,7 +41,9 @@ module Fog
when *@contexts
@context.pop
when 'code'
@instance[@context.last][name] = value.to_i
@instance[@context.last][name] = @context.last == 'stateReason' ? value : value.to_i
when 'message'
@instance[@context.last][name] = value
when 'deleteOnTermination'
@block_device_mapping[name] = (value == 'true')
when 'deviceName', 'status', 'volumeId'