Tell the master to only keep the external job cache if it is turned on

This commit is contained in:
Thomas S Hatch 2012-11-04 19:04:13 -07:00
parent 5f49a49a67
commit 096fe2cef0

View File

@ -780,7 +780,7 @@ class AESFuncs(object):
self.opts['hash_type']) self.opts['hash_type'])
log.info('Got return from {id} for job {jid}'.format(**load)) log.info('Got return from {id} for job {jid}'.format(**load))
self.event.fire_event(load, load['jid']) self.event.fire_event(load, load['jid'])
if not self.opts['job_cache']: if not self.opts['job_cache'] or self.opts.get('ext_job_cache'):
return return
jid_dir = salt.utils.jid_dir( jid_dir = salt.utils.jid_dir(
load['jid'], load['jid'],