fix credential method
This commit is contained in:
parent
90a18dbed3
commit
d9d3e9df39
1 changed files with 3 additions and 3 deletions
|
@ -10,11 +10,11 @@ def gopass_credential_from_path (path):
|
|||
credential = None
|
||||
|
||||
if env_path:
|
||||
print('get credential for: ' + env_path)
|
||||
print('get credential for: ' + path)
|
||||
if sys.version_info.major == 3:
|
||||
credential = check_output(['gopass', env_path], encoding='UTF-8')
|
||||
credential = check_output(['gopass', path], encoding='UTF-8')
|
||||
else:
|
||||
credential = check_output(['gopass', env_path])
|
||||
credential = check_output(['gopass', path])
|
||||
|
||||
return credential
|
||||
|
||||
|
|
Loading…
Reference in a new issue