Skip to content

Commit

Permalink
Fix bug setting execution_node to null (not blank) (#5169)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored and shanemcd committed Jun 28, 2021
1 parent 05e9c2d commit b842b3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions awx/main/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2081,17 +2081,15 @@ def _update_dependent_inventories(self, project_update, dependent_inventory_sour

if settings.IS_K8S:
instance_group = InventoryUpdate(inventory_source=inv_src).preferred_instance_groups[0]
execution_node = None
else:
instance_group = project_update.instance_group
execution_node = project_update.execution_node

local_inv_update = inv_src.create_inventory_update(
_eager_fields=dict(
launch_type='scm',
status='running',
instance_group=instance_group,
execution_node=execution_node,
execution_node=project_update.execution_node,
source_project_update=project_update,
celery_task_id=project_update.celery_task_id,
)
Expand Down

0 comments on commit b842b3f

Please sign in to comment.