Skip to content

Commit

Permalink
Fix unset TagList error in AddSubnet REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Aug 5, 2024
1 parent 89e485e commit bf76616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api-runtime/rest-runtime/VPC-SubnetRest.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ func AddSubnet(c echo.Context) error {
Name string
Zone string
IPv4_CIDR string
TagList []dri.KeyValue
}
}

Expand All @@ -355,7 +356,7 @@ func AddSubnet(c echo.Context) error {
}

// Rest RegInfo => Driver ReqInfo
reqSubnetInfo := cres.SubnetInfo{IId: cres.IID{req.ReqInfo.Name, ""}, IPv4_CIDR: req.ReqInfo.IPv4_CIDR, Zone: req.ReqInfo.Zone}
reqSubnetInfo := cres.SubnetInfo{IId: cres.IID{req.ReqInfo.Name, ""}, IPv4_CIDR: req.ReqInfo.IPv4_CIDR, Zone: req.ReqInfo.Zone, TagList: req.ReqInfo.TagList}

// Call common-runtime API
result, err := cmrt.AddSubnet(req.ConnectionName, SUBNET, c.Param("VPCName"), reqSubnetInfo, req.IDTransformMode)
Expand Down

0 comments on commit bf76616

Please sign in to comment.