Skip to content

Commit

Permalink
Merge pull request #51680 from Ch3LL/bp-50336
Browse files Browse the repository at this point in the history
Backport #50336 into 2018.3
  • Loading branch information
garethgreenaway committed Feb 16, 2019
2 parents a8898f6 + 3502dbb commit b8764fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion salt/modules/gpg.py
Expand Up @@ -924,7 +924,7 @@ def trust_key(keyid=None,

if user == 'salt':
homeDir = os.path.join(__salt__['config.get']('config_dir'), 'gpgkeys')
cmd.extend([' --homedir', homeDir])
cmd.extend(['--homedir', homeDir])
_user = 'root'
res = __salt__['cmd.run_all'](cmd,
stdin=stdin,
Expand Down
2 changes: 1 addition & 1 deletion salt/states/gpg.py
Expand Up @@ -70,7 +70,7 @@ def present(name,
'changes': {},
'comment': []}

_current_keys = __salt__['gpg.list_keys']()
_current_keys = __salt__['gpg.list_keys'](user=user, gnupghome=gnupghome)

current_keys = {}
for key in _current_keys:
Expand Down

0 comments on commit b8764fd

Please sign in to comment.