mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 16:01:20 -03:30
force proj sync when collections/requirements.yml
* Similar to roles/requirements.yml sync optimization logic.
This commit is contained in:
parent
270bd19dbd
commit
d785145c59
@ -1649,6 +1649,11 @@ class RunJob(BaseTask):
|
||||
logger.debug('Running project sync for {} because of galaxy role requirements.'.format(job.log_format))
|
||||
needs_sync = True
|
||||
|
||||
galaxy_collections_req_path = os.path.join(project_path, 'collections', 'requirements.yml')
|
||||
if os.path.exists(galaxy_collections_req_path):
|
||||
logger.debug('Running project sync for {} because of galaxy collections requirements.'.format(job.log_format))
|
||||
needs_sync = True
|
||||
|
||||
if needs_sync:
|
||||
pu_ig = job.instance_group
|
||||
pu_en = job.execution_node
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user