From 76fe23aec4a08d10871090b07c327892c49ab048 Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Dec 08 2019 08:46:42 +0000 Subject: Rename variable for gpg binary from bin to gpg_bin --- diff --git a/bin/reencrypt_pillar.py b/bin/reencrypt_pillar.py index 0c61839..9f6d993 100755 --- a/bin/reencrypt_pillar.py +++ b/bin/reencrypt_pillar.py @@ -38,8 +38,8 @@ class EncryptError(Exception): pass def gpg(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE): - bin = '/usr/bin/gpg' - cmd = [bin] + cmd + gpg_bin = '/usr/bin/gpg' + cmd = [gpg_bin] + cmd logger.debug('Running: %s', cmd) return subprocess.Popen(cmd, stdin=stdin, stdout=stdout, stderr=stderr, encoding=sys.getdefaultencoding())