rename store_facts to use_fact_cache

This commit is contained in:
Chris Meyers
2017-06-19 15:45:32 -04:00
parent ec2e537f63
commit 965159a1fb
6 changed files with 12 additions and 13 deletions

View File

@@ -878,7 +878,7 @@ class RunJob(BaseTask):
# callbacks to work.
env['JOB_ID'] = str(job.pk)
env['INVENTORY_ID'] = str(job.inventory.pk)
if job.store_facts:
if job.use_fact_cache:
env['ANSIBLE_LIBRARY'] = self.get_path_to('..', 'plugins', 'library')
env['ANSIBLE_CACHE_PLUGINS'] = self.get_path_to('..', 'plugins', 'fact_caching')
env['ANSIBLE_CACHE_PLUGIN'] = "tower"
@@ -1140,13 +1140,13 @@ class RunJob(BaseTask):
('project_update', local_project_sync.name, local_project_sync.id)))
raise
if job.store_facts:
if job.use_fact_cache:
job.start_job_fact_cache()
def final_run_hook(self, job, status, **kwargs):
super(RunJob, self).final_run_hook(job, status, **kwargs)
if job.store_facts:
if job.use_fact_cache:
job.finish_job_fact_cache()
try:
inventory = job.inventory