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:
parent
6c1d734a57
commit
57679f4256
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…
Reference in a new issue