mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Move the resolve_execution_environment method to the mixin class
so that it can be used with AdHocCommands as well.
This commit is contained in:
committed by
Shane McDonald
parent
8562c378c0
commit
4993a9e6ec
@@ -887,6 +887,9 @@ class BaseTask(object):
|
||||
return os.path.abspath(os.path.join(os.path.dirname(__file__), *args))
|
||||
|
||||
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())
|
||||
|
||||
image = instance.execution_environment.image
|
||||
params = {
|
||||
"container_image": image,
|
||||
|
||||
Reference in New Issue
Block a user