mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Add verification thet the log dir exists
This commit is contained in:
parent
88e77a1b23
commit
85a0a42ca0
1 changed files with 4 additions and 1 deletions
|
@ -74,6 +74,7 @@ class Master(object):
|
|||
verify_env([os.path.join(self.opts['pki_dir'], 'minions'),
|
||||
os.path.join(self.opts['pki_dir'], 'minions_pre'),
|
||||
os.path.join(self.opts['cachedir'], 'jobs'),
|
||||
os.path.dirname(self.opts['log_file']),
|
||||
])
|
||||
# Late import so logging works correctly
|
||||
import salt.master
|
||||
|
@ -139,7 +140,9 @@ class Minion(object):
|
|||
|
||||
import logging
|
||||
|
||||
verify_env([self.opts['pki_dir'], self.opts['cachedir']])
|
||||
verify_env([self.opts['pki_dir'], self.opts['cachedir'],
|
||||
os.path.dirname(self.opts['log_file']),
|
||||
])
|
||||
if self.cli['daemon']:
|
||||
# Late import so logging works correctly
|
||||
import salt.utils
|
||||
|
|
Loading…
Add table
Reference in a new issue