mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make error more explicit when PKI dir not present for salt-call
This commit is contained in:
parent
1ea2885ec2
commit
3198ca8b19
1 changed files with 6 additions and 2 deletions
|
@ -567,8 +567,12 @@ class MinionBase(object):
|
|||
break
|
||||
except SaltClientError as exc:
|
||||
last_exc = exc
|
||||
msg = ('Master {0} could not be reached, trying '
|
||||
'next master (if any)'.format(opts['master']))
|
||||
if exc.strerror.startswith(
|
||||
'Could not access {0}'.format(opts['pki_dir'])):
|
||||
msg = exc.strerror
|
||||
else:
|
||||
msg = ('Master {0} could not be reached, trying '
|
||||
'next master (if any)'.format(opts['master']))
|
||||
log.info(msg)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue