Skip to content

Commit

Permalink
Merge pull request #15378 from dsumsky/salt-minion-multi-master-bug-2
Browse files Browse the repository at this point in the history
salt minion multi-master exception bug
  • Loading branch information
basepi committed Aug 29, 2014
2 parents 6bd722c + 4ec1417 commit 3def0e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -38,7 +38,7 @@ htmlcov/
/.project
/.pydevproject
/.idea
/.ropeproject
.ropeproject

# ignore ctags file
tags
Expand Down
4 changes: 4 additions & 0 deletions salt/minion.py
Expand Up @@ -370,6 +370,10 @@ def _gen_minions(self):
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):
Expand Down

0 comments on commit 3def0e4

Please sign in to comment.