mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix eventlisten.py for minion event bus
The sock_dir modification was happening after the minion opts had already returned. Just make sure it happens before any return statement.
This commit is contained in:
parent
33a719c1d4
commit
dd2883dff8
1 changed files with 2 additions and 2 deletions
|
@ -44,6 +44,8 @@ def parse():
|
|||
if v is not None:
|
||||
opts[k] = v
|
||||
|
||||
opts['sock_dir'] = os.path.join(opts['sock_dir'], opts['node'])
|
||||
|
||||
if 'minion' in options.node:
|
||||
if args:
|
||||
opts['id'] = args[0]
|
||||
|
@ -51,8 +53,6 @@ def parse():
|
|||
|
||||
opts['id'] = options.node
|
||||
|
||||
opts['sock_dir'] = os.path.join(opts['sock_dir'], opts['node'])
|
||||
|
||||
return opts
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue