mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix path in log message
The actual error refers to the parent dir of the master/minion/etc. pki subdir (i.e. /etc/salt/pki instead of /etc/salt/pki/minion). Therefore, the startswith check needs to look for the parent of the pki_dir.
This commit is contained in:
parent
3198ca8b19
commit
8c67ab53b4
@ -567,8 +567,9 @@ class MinionBase(object):
|
||||
break
|
||||
except SaltClientError as exc:
|
||||
last_exc = exc
|
||||
pki_dirname = os.path.dirname(opts['pki_dir'])
|
||||
if exc.strerror.startswith(
|
||||
'Could not access {0}'.format(opts['pki_dir'])):
|
||||
'Could not access {0}'.format(pki_dirname)):
|
||||
msg = exc.strerror
|
||||
else:
|
||||
msg = ('Master {0} could not be reached, trying '
|
||||
|
Loading…
Reference in New Issue
Block a user