mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Verify that the resolvdir is present
This commit is contained in:
parent
5b4962ea7b
commit
0a50b5a519
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ def _check_resolv(mpt):
|
|||
replace = False
|
||||
if os.path.islink(resolv):
|
||||
resolv = os.path.realpath(resolv)
|
||||
if not os.path.isdir(os.path.dirname(resolv)):
|
||||
os.makedirs(os.path.dirname(resolv))
|
||||
if not os.path.isfile(resolv):
|
||||
replace = True
|
||||
if not replace:
|
||||
|
|
Loading…
Add table
Reference in a new issue