From 2e2f197bc3c1d3d4c664b2c266001df5534e68eb Mon Sep 17 00:00:00 2001 From: wujin Date: Mon, 23 Dec 2019 16:50:07 +0800 Subject: [PATCH] add SecurityGroupId when DescribeSecurityGroups if user specify SecurityGroupId --- builder/alicloud/ecs/step_config_security_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/alicloud/ecs/step_config_security_group.go b/builder/alicloud/ecs/step_config_security_group.go index b147f0a30..8dfbcdc60 100644 --- a/builder/alicloud/ecs/step_config_security_group.go +++ b/builder/alicloud/ecs/step_config_security_group.go @@ -36,7 +36,7 @@ func (s *stepConfigAlicloudSecurityGroup) Run(ctx context.Context, state multist if len(s.SecurityGroupId) != 0 { describeSecurityGroupsRequest := ecs.CreateDescribeSecurityGroupsRequest() describeSecurityGroupsRequest.RegionId = s.RegionId - + describeSecurityGroupsRequest.SecurityGroupId = s.SecurityGroupId if networkType == InstanceNetworkVpc { vpcId := state.Get("vpcid").(string) describeSecurityGroupsRequest.VpcId = vpcId