Skip to content

Commit

Permalink
Merge pull request boto#3276 from ph87/develop
Browse files Browse the repository at this point in the history
Update queue.py
  • Loading branch information
rayluo committed Aug 19, 2015
2 parents d15f6f1 + 33c5ac3 commit f57868b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions boto/sqs/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ def _name(self):

def _arn(self):
parts = self.id.split('/')
return 'arn:aws:sqs:%s:%s:%s' % (
self.connection.region.name, parts[1], parts[2])
if self.connection.region.name == 'cn-north-1':
partition = 'aws-cn'
else:
partition = 'aws'
return 'arn:%s:sqs:%s:%s:%s' % (
partition, self.connection.region.name, parts[1], parts[2])
arn = property(_arn)

def startElement(self, name, attrs, connection):
Expand Down

0 comments on commit f57868b

Please sign in to comment.