diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 8f09f67f56..d0a78064af 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -888,7 +888,8 @@ class BaseTask(object): def build_execution_environment_params(self, instance): if instance.execution_environment_id is None: - self.update_model(instance.pk, execution_environment=instance.resolve_execution_environment()) + self.instance = instance = self.update_model( + instance.pk, execution_environment=instance.resolve_execution_environment()) image = instance.execution_environment.image params = {