mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #51361 from olipovch/cloud-sync-after-install
Fix salt-cloud sync_after_install functionality
This commit is contained in:
commit
17017a1c31
1 changed files with 4 additions and 4 deletions
|
@ -1288,16 +1288,16 @@ class Cloud(object):
|
|||
start = int(time.time())
|
||||
while int(time.time()) < start + 60:
|
||||
# We'll try every <timeout> seconds, up to a minute
|
||||
mopts_ = salt.config.DEFAULT_MINION_OPTS
|
||||
mopts_ = salt.config.DEFAULT_MASTER_OPTS
|
||||
conf_path = '/'.join(self.opts['conf_file'].split('/')[:-1])
|
||||
mopts_.update(
|
||||
salt.config.minion_config(
|
||||
salt.config.master_config(
|
||||
os.path.join(conf_path,
|
||||
'minion')
|
||||
'master')
|
||||
)
|
||||
)
|
||||
|
||||
client = salt.client.get_local_client(mopts=self.opts)
|
||||
client = salt.client.get_local_client(mopts=mopts_)
|
||||
|
||||
ret = client.cmd(
|
||||
vm_['name'],
|
||||
|
|
Loading…
Add table
Reference in a new issue