From b371dc2f40b1cd1b51d266ad7a4eefedfa68414e Mon Sep 17 00:00:00 2001 From: Matthieu Huin Date: Wed, 2 Dec 2020 12:00:25 +0100 Subject: [PATCH] encrypt: fix bad indentation An incorrect indentation causes secrets to be truncated to only the first encrypted chunk. Fix that erroneous behavior. Change-Id: Ibfb84747e45bc4b4c4861193c64a4c3c91da120f --- zuulclient/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuulclient/utils/__init__.py b/zuulclient/utils/__init__.py index 2893475..d20cc48 100644 --- a/zuulclient/utils/__init__.py +++ b/zuulclient/utils/__init__.py @@ -94,4 +94,4 @@ def encrypt_with_openssl(pubkey_path, plaintext, logger=None): if p.returncode != 0: raise Exception('openssl failure (Return code %s)' % p.returncode) ciphertext_chunks.append(base64.b64encode(stdout).decode('utf-8')) - return ciphertext_chunks + return ciphertext_chunks