Allow fro overly large temp file paths to be shortened

This is a proposed fix for #1988
This commit is contained in:
Thomas S Hatch 2012-09-14 00:22:02 -06:00
parent ec1baecd81
commit c2209d6d85

View File

@ -208,6 +208,9 @@ def minion_config(path):
'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')
default_include = opts.get('default_include', [])