From 66111e5ad894122ec8d4fab0c7ba928509041b48 Mon Sep 17 00:00:00 2001 From: jem Date: Tue, 28 Jan 2020 12:47:43 +0100 Subject: [PATCH] fix env_path refactoring --- src/main/python/ddadevops/credential.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/python/ddadevops/credential.py b/src/main/python/ddadevops/credential.py index 1f055f2..5494cad 100644 --- a/src/main/python/ddadevops/credential.py +++ b/src/main/python/ddadevops/credential.py @@ -2,14 +2,14 @@ from subprocess import check_output, call import os import sys -def gopass_credential_from_env_path (env): - env_path = os.environ.get(env, None) +def gopass_credential_from_env_path (env_var): + env_path = os.environ.get(env_var, None) return gopass_credential_from_path(env_path) def gopass_credential_from_path (path): credential = None - if env_path: + if path: print('get credential for: ' + path) if sys.version_info.major == 3: credential = check_output(['gopass', path], encoding='UTF-8')