Make error more specific to aid in troubleshooting

This commit is contained in:
Erik Johnson 2018-04-16 12:55:57 -05:00
parent 8c67ab53b4
commit fed5041c5f
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -569,7 +569,10 @@ class MinionBase(object):
last_exc = exc
pki_dirname = os.path.dirname(opts['pki_dir'])
if exc.strerror.startswith(
'Could not access {0}'.format(pki_dirname)):
'Failed to initiate connection with Master '
'{0} because the Minion could not access {1}. '
'Check ownership/permissions'.format(
opts['master'], pki_dirname)):
msg = exc.strerror
else:
msg = ('Master {0} could not be reached, trying '