From 4db5c496d0a72917f16edc86d2106a922d5e9baf Mon Sep 17 00:00:00 2001 From: nixocio Date: Tue, 16 Mar 2021 16:32:21 -0400 Subject: [PATCH] Allow one to select non-global execution environments for organizations Allow one to select non-global EE when editing an Organization. See: https://github.com/ansible/awx/issues/9592 --- .../screens/Organization/shared/OrganizationForm.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Organization/shared/OrganizationForm.jsx b/awx/ui_next/src/screens/Organization/shared/OrganizationForm.jsx index eb46f8c5cc..54f67c4f3c 100644 --- a/awx/ui_next/src/screens/Organization/shared/OrganizationForm.jsx +++ b/awx/ui_next/src/screens/Organization/shared/OrganizationForm.jsx @@ -21,7 +21,12 @@ import { required, minMaxValue } from '../../../util/validators'; import { FormColumnLayout } from '../../../components/FormLayout'; import CredentialLookup from '../../../components/Lookup/CredentialLookup'; -function OrganizationFormFields({ i18n, instanceGroups, setInstanceGroups }) { +function OrganizationFormFields({ + i18n, + instanceGroups, + setInstanceGroups, + organizationId, +}) { const { license_info = {}, me = {} } = useConfig(); const { custom_virtualenvs } = useContext(ConfigContext); @@ -124,6 +129,7 @@ function OrganizationFormFields({ i18n, instanceGroups, setInstanceGroups }) { t`Select the default execution environment for this organization.` )} globallyAvailable + organizationId={organizationId} isDefaultEnvironment /> @@ -245,6 +252,7 @@ OrganizationForm.propTypes = { OrganizationForm.defaultProps = { organization: { + id: '', name: '', description: '', max_hosts: '0',