mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26563 from rallytime/fix-20169
Fix error detection when salt-cloud config is missing a master's address
This commit is contained in:
commit
000e5a2acf
1 changed files with 7 additions and 7 deletions
|
@ -76,7 +76,8 @@ def enter_mainloop(target,
|
|||
pool_size=None,
|
||||
callback=None,
|
||||
queue=None):
|
||||
'''Manage a multiprocessing pool
|
||||
'''
|
||||
Manage a multiprocessing pool
|
||||
|
||||
- If the queue does not output anything, the pool runs indefinitely
|
||||
|
||||
|
@ -1172,12 +1173,11 @@ class Cloud(object):
|
|||
)
|
||||
|
||||
if deploy:
|
||||
if make_master is False and 'master' not in minion_dict:
|
||||
raise SaltCloudConfigError(
|
||||
(
|
||||
'There\'s no master defined on the '
|
||||
'{0!r} VM settings'
|
||||
).format(vm_['name'])
|
||||
if not make_master and 'master' not in minion_dict:
|
||||
log.warn(
|
||||
'There\'s no master defined on the {0!r} VM settings.'.format(
|
||||
vm_['name']
|
||||
)
|
||||
)
|
||||
|
||||
if 'pub_key' not in vm_ and 'priv_key' not in vm_:
|
||||
|
|
Loading…
Add table
Reference in a new issue