FIX:Ec2:Added:Tags for EIP (#3505)

* FIX:Ec2:Added:Tags for EIP

* removed files

* Fix tests
This commit is contained in:
usmangani1 2020-12-06 05:34:46 +05:30 committed by GitHub
commit cfaaa70ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 1 deletions

View file

@ -226,7 +226,9 @@ class StateReason(object):
class TaggedEC2Resource(BaseModel):
def get_tags(self, *args, **kwargs):
tags = self.ec2_backend.describe_tags(filters={"resource-id": [self.id]})
tags = []
if self.id:
tags = self.ec2_backend.describe_tags(filters={"resource-id": [self.id]})
return tags
def add_tag(self, key, value):