Do not show control instances as option to be associated

Do not show control instances as option to be associated to user defined
instance groups.

See: https://github.com/ansible/tower/issues/5339
This commit is contained in:
nixocio 2021-10-15 09:52:13 -04:00 committed by Shane McDonald
parent d6b4b9f973
commit 206c85778e
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -147,7 +147,10 @@ function InstanceList() {
const fetchInstancesToAssociate = useCallback(
(params) =>
InstancesAPI.read(
mergeParams(params, { not__rampart_groups__id: instanceGroupId })
mergeParams(params, {
...{ not__rampart_groups__id: instanceGroupId },
...{ not__node_type: 'control' },
})
),
[instanceGroupId]
);