mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #11764 from ansible/filter_hopcontrol_from_associatemodal
filter out both hop and control nodes instead of just one or the other
This commit is contained in:
commit
1ed0b70601
@ -127,7 +127,7 @@ function InstanceList() {
|
||||
async (instancesToAssociate) => {
|
||||
await Promise.all(
|
||||
instancesToAssociate
|
||||
.filter((i) => i.node_type !== 'control')
|
||||
.filter((i) => i.node_type !== 'control' || i.node_type !== 'hop')
|
||||
.map((instance) =>
|
||||
InstanceGroupsAPI.associateInstance(instanceGroupId, instance.id)
|
||||
)
|
||||
@ -155,8 +155,7 @@ function InstanceList() {
|
||||
InstancesAPI.read(
|
||||
mergeParams(params, {
|
||||
...{ not__rampart_groups__id: instanceGroupId },
|
||||
...{ not__node_type: 'control' },
|
||||
...{ not__node_type: 'hop' },
|
||||
...{ not__node_type: ['hop', 'control'] },
|
||||
})
|
||||
),
|
||||
[instanceGroupId]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user