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:
parent
6fadddeaba
commit
297566f2fd
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue