Ensure that the updated job instance is used

when attaching an EE.
This commit is contained in:
Jeff Bradberry 2020-12-10 09:27:45 -05:00 committed by Shane McDonald
parent 4a0fc3e1af
commit fde7a1e3e5

View File

@ -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 = {