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.
pull/17533/head^2
Adrian Likins 8 years ago committed by GitHub
parent 6fadddeaba
commit 297566f2fd

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