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

Merge pull request #3372 from engineyard/get-topic-attributes-fix

[aws] get_topic_attributes handle nil values
This commit is contained in:
Frederick Cheung 2014-12-30 13:06:26 +00:00
commit 664d02f59c

View file

@ -16,10 +16,10 @@ module Fog
when 'SubscriptionsConfirmed', 'SubscriptionsDeleted', 'SubscriptionsPending'
@response['Attributes'][@key] = @value.rstrip.to_i
else
@response['Attributes'][@key] = @value.rstrip
@response['Attributes'][@key] = (@value && @value.rstrip) || nil
end
when 'RequestId'
@response[name] = @value
@response[name] = @value.rstrip
end
end
end