Skip to content

Commit

Permalink
fix SAM environment name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli-Meitner committed Dec 15, 2022
1 parent 002d0e3 commit 7c0b86d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified modules/test-framework-manager/lambda/lambda.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ async function getDeploymentDetails() {
}
if (platform === "Lambda") {
deploymentType = "SAM"
environment = data.deploymentInfo.applicationName.split('-')[2];
environment = data.deploymentInfo.applicationName.replace(`serverlessrepo-${process.env.APP_NAME}-`,'');
environment = environment.split('-')[0];
resolve({ "lb_env_name": `${environment}.${process.env.APP_NAME}`, "environment": environment, "deploy_type": deploymentType });
}
}// successful response
Expand Down

0 comments on commit 7c0b86d

Please sign in to comment.