mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix trust key 2015.8 (#36540)
* Fix gpg.trust_key user bug * Separated user and no user case
This commit is contained in:
parent
57ec792f6b
commit
6e36191fc4
1 changed files with 4 additions and 1 deletions
|
@ -811,7 +811,10 @@ def trust_key(keyid=None,
|
|||
|
||||
if not fingerprint:
|
||||
if keyid:
|
||||
key = get_key(keyid)
|
||||
if user:
|
||||
key = get_key(keyid, user=user)
|
||||
else:
|
||||
key = get_key(keyid)
|
||||
if key:
|
||||
if 'fingerprint' not in key:
|
||||
ret['res'] = False
|
||||
|
|
Loading…
Add table
Reference in a new issue