Fill in the new execution environment collection module

as well as changes to other ones that need to be able to attach EEs.
This commit is contained in:
Jeff Bradberry
2020-11-19 14:06:32 -05:00
committed by Shane McDonald
parent c1133b3f6d
commit 6d935f740c
8 changed files with 91 additions and 29 deletions

View File

@@ -353,7 +353,7 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, ExecutionEn
if self.inventory.organization.default_environment is not None:
return self.inventory.organization.default_environment
if settings.DEFAULT_EXECUTION_ENVIRONMENT is not None:
return settings.DEFAULT_EXECUTION_ENVIRONMENT
return settings.DEFAULT_EXECUTION_ENVIRONMENT
return ExecutionEnvironment.objects.filter(organization=None, managed_by_tower=True).first()
def create_unified_job(self, **kwargs):