mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pass the minionswarm user through to salt-key
Otherwise salt-key would fail with a user warning and not write the key which would then cause the minionswarm to fail when referencing the key.
This commit is contained in:
parent
d779354351
commit
b336c48b8c
1 changed files with 2 additions and 2 deletions
|
@ -114,8 +114,8 @@ class Swarm(object):
|
|||
print('Creating shared pki keys for the swarm on: {0}'.format(path))
|
||||
subprocess.call(
|
||||
'salt-key -c {0} --gen-keys minion --gen-keys-dir {0} '
|
||||
'--log-file {1}'.format(
|
||||
path, os.path.join(path, 'keys.log')
|
||||
'--log-file {1} --user {2}'.format(
|
||||
path, os.path.join(path, 'keys.log'), self.opts['user'],
|
||||
), shell=True
|
||||
)
|
||||
print('Keys generated')
|
||||
|
|
Loading…
Add table
Reference in a new issue