bump tag limit from 10 to 50 to align with actual AWS limit
This commit is contained in:
parent
2e33e2be90
commit
37f643ecb4
@ -815,9 +815,9 @@ class TagBackend(object):
|
|||||||
raise InvalidParameterValueErrorTagNull()
|
raise InvalidParameterValueErrorTagNull()
|
||||||
for resource_id in resource_ids:
|
for resource_id in resource_ids:
|
||||||
if resource_id in self.tags:
|
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()
|
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()
|
raise TagLimitExceeded()
|
||||||
for resource_id in resource_ids:
|
for resource_id in resource_ids:
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user