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

fix sns account_id usage

Conflicts:
	lib/fog/aws/sns.rb
This commit is contained in:
Josh Lane 2014-12-31 16:47:56 -08:00
parent d496bcd266
commit 76d86d9631
2 changed files with 5 additions and 2 deletions

View file

@ -29,7 +29,7 @@ module Fog
topic_arn = Fog::AWS::Mock.arn(@module, @account_id, name, @region)
self.data[:topics][topic_arn] = {
"Owner" => Fog::AWS::Mock.owner_id,
"Owner" => @account_id,
"SubscriptionsPending" => 0,
"SubscriptionsConfirmed" => 0,
"SubscriptionsDeleted" => 0,

View file

@ -39,10 +39,13 @@ module Fog
end
end
attr_reader :region
attr_writer :account_id
def initialize(options={})
@region = options[:region] || 'us-east-1'
@aws_access_key_id = options[:aws_access_key_id]
@account_id = "12345678910"
@account_id = Fog::AWS::Mock.owner_id
@module = "sns"
unless ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region)