mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40961 from terminalmage/issue40948
Make error more explicit when PKI dir not present for salt-call
This commit is contained in:
commit
87ca2b4003
1 changed files with 9 additions and 2 deletions
|
@ -567,8 +567,15 @@ 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'):
|
||||
msg = (
|
||||
'Failed to initiate connection with Master '
|
||||
'{0}: check ownership/permissions. Error '
|
||||
'message: {1}'.format(opts['master'], exc)
|
||||
)
|
||||
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