fix credential method

This commit is contained in:
jem 2020-01-28 12:08:43 +01:00
parent 90a18dbed3
commit d9d3e9df39

View file

@ -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