mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
- raise SaltClientError exception when a minion can't connect to
any of the configured masters
This commit is contained in:
parent
5475d060e2
commit
07ca8d8479
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -39,6 +39,7 @@ htmlcov/
|
|||
/.pydevproject
|
||||
/.idea
|
||||
/.ropeproject
|
||||
.ropeproject
|
||||
/*.iml
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
|
|
|
@ -469,6 +469,10 @@ class MultiMinion(MinionBase):
|
|||
minions.append(Minion(s_opts, 5, False))
|
||||
except SaltClientError as exc:
|
||||
log.error('Error while bringing up minion for multi-master. Is master at {0} responding?'.format(master))
|
||||
if len(minions) == 0:
|
||||
err = 'Error while bringing up minion for multi-master. All configured masters [{0}] are not responding!!!'.format(", ".join(map(str, set(self.opts['master']))))
|
||||
log.error(err)
|
||||
raise SaltClientError(err)
|
||||
return minions
|
||||
|
||||
def minions(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue