filter out both hop and control nodes instead of just one or the other

This commit is contained in:
Rebeccah 2022-02-16 17:44:29 -05:00
parent a94a602ccd
commit 6b60edbe5d
No known key found for this signature in database
GPG Key ID: A102D27DFFAF3552

View File

@ -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]