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:
Colton Myers 2013-11-27 09:39:52 -07:00
parent 33a719c1d4
commit dd2883dff8

View file

@ -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