add SecurityGroupId when DescribeSecurityGroups if user specify SecurityGroupId

This commit is contained in:
wujin 2019-12-23 16:50:07 +08:00 committed by alexyueer
parent 0649c3f7dc
commit 2e2f197bc3
1 changed files with 1 additions and 1 deletions

View File

@ -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