Skip to content

Commit

Permalink
fix(amazon): Security group names for standalone apps render incorrec…
Browse files Browse the repository at this point in the history
…tly (#8816)
  • Loading branch information
caseyhebebrand committed Jan 6, 2021
1 parent d005ea5 commit 6904cb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ module(AMAZON_SECURITYGROUP_CONFIGURE_CONFIGSECURITYGROUP_MIXIN_CONTROLLER, [

ctrl.updateName = function () {
const { securityGroup } = $scope;
const name = NameUtils.getClusterName(application.name, securityGroup.stack, securityGroup.detail);
const appName = application.isStandalone ? application.name.split('-')[0] : application.name;
const name = NameUtils.getClusterName(appName, securityGroup.stack, securityGroup.detail);
securityGroup.name = name;
$scope.namePreview = name;
};
Expand Down

0 comments on commit 6904cb0

Please sign in to comment.