mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33759 from cachedout/issue_31219
Catch no minions exception in batch mode
This commit is contained in:
commit
c749aea409
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ class SaltCMD(parsers.SaltCMDOptionParser):
|
|||
if not self.options.batch:
|
||||
self.config['batch'] = '100%'
|
||||
|
||||
batch = salt.cli.batch.Batch(self.config, eauth=eauth, quiet=True)
|
||||
try:
|
||||
batch = salt.cli.batch.Batch(self.config, eauth=eauth, quiet=True)
|
||||
except salt.exceptions.SaltClientError as exc:
|
||||
sys.exit(2)
|
||||
|
||||
ret = {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue