mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
salt-cloud: fix path to Salt Master socket dir
This commit is contained in:
parent
eda2ae0add
commit
eceedadfa5
1 changed files with 3 additions and 1 deletions
|
@ -1686,12 +1686,14 @@ def run_inline_script(host,
|
|||
def fire_event(key, msg, tag, args=None, sock_dir=None, transport='zeromq'):
|
||||
# Fire deploy action
|
||||
if sock_dir is None:
|
||||
sock_dir = os.path.join(__opts__['sock_dir'], 'master')
|
||||
sock_dir = __opts__['sock_dir']
|
||||
|
||||
event = salt.utils.event.get_event(
|
||||
'master',
|
||||
sock_dir,
|
||||
transport,
|
||||
listen=False)
|
||||
|
||||
try:
|
||||
event.fire_event(msg, tag)
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Reference in a new issue