mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Simplify logic
This commit is contained in:
parent
593ead08cf
commit
a4c87fcf57
1 changed files with 2 additions and 2 deletions
|
@ -1173,9 +1173,9 @@ class Cloud(object):
|
|||
)
|
||||
|
||||
if deploy:
|
||||
if make_master is not True and 'master' not in minion_dict:
|
||||
if not make_master and 'master' not in minion_dict:
|
||||
raise SaltCloudConfigError(
|
||||
'There\'s no master defined on the {0!r} VM settings'.format(
|
||||
'There\'s no master defined on the {0!r} VM settings.'.format(
|
||||
vm_['name']
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue