mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use get_local_client with MASTER opts, not MINION
This commit is contained in:
parent
826fea6582
commit
44c100d610
1 changed files with 6 additions and 4 deletions
|
@ -1290,11 +1290,13 @@ class Cloud(object):
|
|||
)
|
||||
)
|
||||
|
||||
client = salt.client.get_local_client(mopts=mopts_)
|
||||
client = salt.client.get_local_client(mopts=self.opts)
|
||||
|
||||
ret = client.cmd(vm_['name'], 'saltutil.sync_{0}'.format(
|
||||
self.opts['sync_after_install']
|
||||
))
|
||||
ret = client.cmd(
|
||||
vm_['name'],
|
||||
'saltutil.sync_{0}'.format(self.opts['sync_after_install']),
|
||||
timeout=self.opts['timeout']
|
||||
)
|
||||
log.info(
|
||||
six.u('Synchronized the following dynamic modules: '
|
||||
' {0}').format(ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue