mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix the monitoring parser
This commit is contained in:
parent
694c8b65d7
commit
632bdac33c
1 changed files with 6 additions and 6 deletions
|
@ -27,12 +27,6 @@ module Fog
|
||||||
@instance[:placement][:availability_zone] = @value
|
@instance[:placement][:availability_zone] = @value
|
||||||
when 'dnsName'
|
when 'dnsName'
|
||||||
@instance[:dns_name] = @value
|
@instance[:dns_name] = @value
|
||||||
when 'enabled'
|
|
||||||
if @value == 'true'
|
|
||||||
@instance[:monitoring][:enabled] = true
|
|
||||||
else
|
|
||||||
@instance[:monitoring][:enabled] = false
|
|
||||||
end
|
|
||||||
when 'groupId'
|
when 'groupId'
|
||||||
@response[:group_set] << @value
|
@response[:group_set] << @value
|
||||||
when 'groupSet'
|
when 'groupSet'
|
||||||
|
@ -76,6 +70,12 @@ module Fog
|
||||||
@instance[:requestor_id] = @value
|
@instance[:requestor_id] = @value
|
||||||
when 'reservationId'
|
when 'reservationId'
|
||||||
@response[:reservation_id] = @value
|
@response[:reservation_id] = @value
|
||||||
|
when 'state'
|
||||||
|
if @value == 'true'
|
||||||
|
@instance[:monitoring][:state] = true
|
||||||
|
else
|
||||||
|
@instance[:monitoring][:state] = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue