From 1dafaf983038e0e628b37376f3adb35380608192 Mon Sep 17 00:00:00 2001 From: Andy Wick Date: Wed, 15 May 2024 16:26:59 -0400 Subject: [PATCH] fix eslint --- cdk-lib/cloud-demo.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/cdk-lib/cloud-demo.ts b/cdk-lib/cloud-demo.ts index d5c5e57..cbac2d1 100644 --- a/cdk-lib/cloud-demo.ts +++ b/cdk-lib/cloud-demo.ts @@ -23,18 +23,19 @@ const env: Environment = { region: params.awsRegion }; -switch(params.type) { -case 'ClusterMgmtParams': { - function addTags (stack: cdk.Stack) { - const clusterParams = params as prms.ClusterMgmtParams; - cdk.Tags.of(stack).add('arkime_cluster', clusterParams.nameCluster); - - if (clusterParams.userConfig.extraTags) { - for (const tag of clusterParams.userConfig.extraTags) { - cdk.Tags.of(stack).add(tag.key, tag.value); - } +function addTags (stack: cdk.Stack) { + const clusterParams = params as prms.ClusterMgmtParams; + cdk.Tags.of(stack).add('arkime_cluster', clusterParams.nameCluster); + + if (clusterParams.userConfig.extraTags) { + for (const tag of clusterParams.userConfig.extraTags) { + cdk.Tags.of(stack).add(tag.key, tag.value); } } +} + +switch(params.type) { +case 'ClusterMgmtParams': { const captureBucketStack = new CaptureBucketStack(app, params.stackNames.captureBucket, { env: env, planCluster: params.planCluster,