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:
Tyler Schwend 2019-04-04 22:09:48 -04:00 committed by Will Thames
parent 10a9cf59dd
commit daca7fa584

View file

@ -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: