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.
pull/54587/head
Tyler Schwend 6 years ago committed by Will Thames
parent 10a9cf59dd
commit daca7fa584

@ -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…
Cancel
Save