fix: return a list, specifically (#54537)
tags.keys() returns a list of the keys, sure. But in Python 3 it's a "dict_keys" class, and BOTO is expecting a list. So let's make this work in Python 3. list(tags) returns a list of the keys in Python 2 and Python3. That seems to be what we want.
This commit is contained in:
parent
10a9cf59dd
commit
daca7fa584
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ def tags_action(client, stream_name, tags, action='create', check_mode=False):
|
|||
client.add_tags_to_stream(**params)
|
||||
success = True
|
||||
elif action == 'delete':
|
||||
params['TagKeys'] = tags.keys()
|
||||
params['TagKeys'] = list(tags)
|
||||
client.remove_tags_from_stream(**params)
|
||||
success = True
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue