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

Merge pull request #1283 from freeformz/describe_instance_state_reason_parse_grrrrrr

Fix describe_instances stateReason handling
This commit is contained in:
Wesley Beary 2012-11-16 07:22:52 -08:00
commit bcbe805929

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'