From 22818c637072ff6b8f17ff8407513c114f0bec8f Mon Sep 17 00:00:00 2001 From: Ashley Kleynhans Date: Wed, 11 Sep 2024 18:43:12 +0200 Subject: [PATCH] fix(aws): Fix IPv6 addresses being incorrectly associated when cloning server groups that have launch templates enabled (#6979) (#10142) --- .../serverGroup/configure/serverGroupCommandBuilder.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts index a035349ffd4..58aca4ea944 100644 --- a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +++ b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts @@ -437,7 +437,8 @@ angular command.viewState.useSimpleInstanceTypeSelector = isSimpleModeEnabled(command); } - const ipv6AddressCount = _.get(launchTemplateData, 'networkInterfaces[0]'); + const networkInterfaces = _.get(launchTemplateData, 'networkInterfaces[0]'); + const ipv6AddressCount = (networkInterfaces as INetworkInterface)?.ipv6AddressCount ?? 0; const asgSettings = AWSProviderSettings.serverGroups; const isTestEnv = serverGroup.accountDetails && serverGroup.accountDetails.environment === 'test';