Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed May 15, 2024
1 parent 865fc43 commit 1dafaf9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions cdk-lib/cloud-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1dafaf9

Please sign in to comment.