Use default state_dir
Change-Id: Ic6722d3d8b8fa6a48db5c586aeb23772c1fe178f
This commit is contained in:
parent
5d5bc2b92e
commit
5a95c86d8f
|
@ -182,7 +182,11 @@ class Scheduler(threading.Thread):
|
|||
self.log.debug("Waiting for exit")
|
||||
|
||||
def _get_queue_pickle_file(self):
|
||||
state_dir = os.path.expanduser(self.config.get('zuul', 'state_dir'))
|
||||
if self.config.has_option('zuul', 'state_dir'):
|
||||
state_dir = os.path.expanduser(self.config.get('zuul',
|
||||
'state_dir'))
|
||||
else:
|
||||
state_dir = '/var/lib/zuul'
|
||||
return os.path.join(state_dir, 'queue.pickle')
|
||||
|
||||
def _save_queue(self):
|
||||
|
|
Loading…
Reference in New Issue