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:
commit
bcbe805929
1 changed files with 3 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue