1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Wrap vault encrypt_strings zip() result in list for py3 (#21695)

py3 zip() results are not lists, so list'ify the result
for py2/py3 compat.
This commit is contained in:
Adrian Likins 2017-02-21 10:30:21 -05:00 committed by GitHub
parent 6fadddeaba
commit 297566f2fd

View file

@ -234,7 +234,7 @@ class VaultCLI(CLI):
# use any leftover args as strings to encrypt
# Try to match args up to --name options
if hasattr(self.options, 'encrypt_string_names') and self.options.encrypt_string_names:
name_and_text_list = zip(self.options.encrypt_string_names, args)
name_and_text_list = list(zip(self.options.encrypt_string_names, args))
# Some but not enough --name's to name each var
if len(args) > len(name_and_text_list):