We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 893785b commit 7c5b644Copy full SHA for 7c5b644
1 file changed
builder/tencentcloud/cvm/step_config_subnet.go
@@ -58,7 +58,9 @@ func (s *stepConfigSubnet) Run(ctx context.Context, state multistep.StateBag) mu
58
req.SubnetName = &s.SubnetName
59
req.CidrBlock = &s.SubnetCidrBlock
60
req.Zone = &s.Zone
61
- req.CdcId = &s.CdcId
+ if s.CdcId != "" {
62
+ req.CdcId = &s.CdcId
63
+ }
64
var resp *vpc.CreateSubnetResponse
65
err := Retry(ctx, func(ctx context.Context) error {
66
var e error
0 commit comments