1
0
Fork 0
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:
Wesley Beary 2009-07-17 14:05:05 -07:00
parent 694c8b65d7
commit 632bdac33c

View file

@ -27,12 +27,6 @@ module Fog
@instance[:placement][:availability_zone] = @value
when 'dnsName'
@instance[:dns_name] = @value
when 'enabled'
if @value == 'true'
@instance[:monitoring][:enabled] = true
else
@instance[:monitoring][:enabled] = false
end
when 'groupId'
@response[:group_set] << @value
when 'groupSet'
@ -76,6 +70,12 @@ module Fog
@instance[:requestor_id] = @value
when 'reservationId'
@response[:reservation_id] = @value
when 'state'
if @value == 'true'
@instance[:monitoring][:state] = true
else
@instance[:monitoring][:state] = false
end
end
end