improve credentials output
This commit is contained in:
parent
37ba2080c2
commit
8e194e53a2
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ def gopass_field_from_path (path, field):
|
||||||
credential = None
|
credential = None
|
||||||
|
|
||||||
if path and field:
|
if path and field:
|
||||||
print('get credential for: ' + path)
|
print('get field for: ' + path + ', ' + field)
|
||||||
if sys.version_info.major == 3:
|
if sys.version_info.major == 3:
|
||||||
credential = check_output(['gopass', 'show', path, field], encoding='UTF-8')
|
credential = check_output(['gopass', 'show', path, field], encoding='UTF-8')
|
||||||
else:
|
else:
|
||||||
|
@ -31,7 +31,7 @@ def gopass_password_from_path (path):
|
||||||
credential = None
|
credential = None
|
||||||
|
|
||||||
if path:
|
if path:
|
||||||
print('get credential for: ' + path)
|
print('get password for: ' + path)
|
||||||
if sys.version_info.major == 3:
|
if sys.version_info.major == 3:
|
||||||
credential = check_output(['gopass', 'show', '--password', path], encoding='UTF-8')
|
credential = check_output(['gopass', 'show', '--password', path], encoding='UTF-8')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue