mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
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:
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:
|
||||
|
||||
Reference in New Issue
Block a user