mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
filter out both hop and control nodes instead of just one or the other
This commit is contained in:
@@ -127,7 +127,7 @@ function InstanceList() {
|
|||||||
async (instancesToAssociate) => {
|
async (instancesToAssociate) => {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
instancesToAssociate
|
instancesToAssociate
|
||||||
.filter((i) => i.node_type !== 'control')
|
.filter((i) => i.node_type !== 'control' || i.node_type !== 'hop')
|
||||||
.map((instance) =>
|
.map((instance) =>
|
||||||
InstanceGroupsAPI.associateInstance(instanceGroupId, instance.id)
|
InstanceGroupsAPI.associateInstance(instanceGroupId, instance.id)
|
||||||
)
|
)
|
||||||
@@ -155,8 +155,7 @@ function InstanceList() {
|
|||||||
InstancesAPI.read(
|
InstancesAPI.read(
|
||||||
mergeParams(params, {
|
mergeParams(params, {
|
||||||
...{ not__rampart_groups__id: instanceGroupId },
|
...{ not__rampart_groups__id: instanceGroupId },
|
||||||
...{ not__node_type: 'control' },
|
...{ not__node_type: ['hop', 'control'] },
|
||||||
...{ not__node_type: 'hop' },
|
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
[instanceGroupId]
|
[instanceGroupId]
|
||||||
|
|||||||
Reference in New Issue
Block a user