mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
47d668e071
commit
15a39f8646
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