mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
Fix projects to use the utility function get_default_execution_environment
This commit is contained in:
@@ -32,6 +32,7 @@ from awx.main.models.jobs import Job
|
|||||||
from awx.main.models.mixins import ResourceMixin, TaskManagerProjectUpdateMixin, CustomVirtualEnvMixin, RelatedJobsMixin
|
from awx.main.models.mixins import ResourceMixin, TaskManagerProjectUpdateMixin, CustomVirtualEnvMixin, RelatedJobsMixin
|
||||||
from awx.main.utils import update_scm_url, polymorphic
|
from awx.main.utils import update_scm_url, polymorphic
|
||||||
from awx.main.utils.ansible import skip_directory, could_be_inventory, could_be_playbook
|
from awx.main.utils.ansible import skip_directory, could_be_inventory, could_be_playbook
|
||||||
|
from awx.main.utils.execution_environments import get_default_execution_environment
|
||||||
from awx.main.fields import ImplicitRoleField
|
from awx.main.fields import ImplicitRoleField
|
||||||
from awx.main.models.rbac import (
|
from awx.main.models.rbac import (
|
||||||
ROLE_SINGLETON_SYSTEM_ADMINISTRATOR,
|
ROLE_SINGLETON_SYSTEM_ADMINISTRATOR,
|
||||||
@@ -188,7 +189,7 @@ class ProjectOptions(models.Model):
|
|||||||
Jobs using the project can use the default_environment, but the project updates
|
Jobs using the project can use the default_environment, but the project updates
|
||||||
are not flexible enough to allow customizing the image they use.
|
are not flexible enough to allow customizing the image they use.
|
||||||
"""
|
"""
|
||||||
return self.get_default_execution_environment()
|
return get_default_execution_environment()
|
||||||
|
|
||||||
def get_project_path(self, check_if_exists=True):
|
def get_project_path(self, check_if_exists=True):
|
||||||
local_path = os.path.basename(self.local_path)
|
local_path = os.path.basename(self.local_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user