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:
commit
664d02f59c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue