mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Allow fro overly large temp file paths to be shortened
This is a proposed fix for #1988
This commit is contained in:
parent
ec1baecd81
commit
c2209d6d85
@ -208,6 +208,9 @@ def minion_config(path):
|
|||||||
'update_restart_services': [],
|
'update_restart_services': [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(opts['sock_dir']) > len(opts['cachedir']) + 10:
|
||||||
|
opts['sock_dir'] = os.path.join(opts['cachedir'], '.salt-unix')
|
||||||
|
|
||||||
load_config(opts, path, 'SALT_MINION_CONFIG')
|
load_config(opts, path, 'SALT_MINION_CONFIG')
|
||||||
|
|
||||||
default_include = opts.get('default_include', [])
|
default_include = opts.get('default_include', [])
|
||||||
|
Loading…
Reference in New Issue
Block a user