Merge pull request #755 from dtenenba/master

bump tag limit from 10 to 50 to align with actual AWS limit
This commit is contained in:
Steve Pulec 2016-11-06 09:52:20 -05:00 committed by GitHub
commit 44636d1f73
2 changed files with 5 additions and 13 deletions

View file

@ -815,9 +815,9 @@ class TagBackend(object):
raise InvalidParameterValueErrorTagNull()
for resource_id in resource_ids:
if resource_id in self.tags:
if len(self.tags[resource_id]) + len([tag for tag in tags if not tag.startswith("aws:")]) > 10:
if len(self.tags[resource_id]) + len([tag for tag in tags if not tag.startswith("aws:")]) > 50:
raise TagLimitExceeded()
elif len([tag for tag in tags if not tag.startswith("aws:")]) > 10:
elif len([tag for tag in tags if not tag.startswith("aws:")]) > 50:
raise TagLimitExceeded()
for resource_id in resource_ids:
for tag in tags: