Returning dymanic response for add_tags_to_resource
This commit is contained in:
parent
10c0ffc2f2
commit
15fcec9c33
2 changed files with 19 additions and 3 deletions
|
|
@ -252,6 +252,7 @@ class Database(object):
|
|||
new_keys = [tag_set['Key'] for tag_set in tags]
|
||||
self.tags = [tag_set for tag_set in self.tags if tag_set['Key'] not in new_keys]
|
||||
self.tags.extend(tags)
|
||||
return self.tags
|
||||
|
||||
def remove_tags(self, tag_keys):
|
||||
self.tags = [tag_set for tag_set in self.tags if tag_set['Key'] not in tag_keys]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue