From 297566f2fd7506adacc278d592ee041652f5e27f Mon Sep 17 00:00:00 2001 From: Adrian Likins <alikins@redhat.com> Date: Tue, 21 Feb 2017 10:30:21 -0500 Subject: [PATCH] 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. --- lib/ansible/cli/vault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/vault.py b/lib/ansible/cli/vault.py index ecc27e30240..3b12ee13fe2 100644 --- a/lib/ansible/cli/vault.py +++ b/lib/ansible/cli/vault.py @@ -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):