Skip to content

Commit

Permalink
Revert type miss-matching
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son committed Sep 2, 2024
1 parent 26d2dca commit ff5a402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/resource/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2172,10 +2172,10 @@ func GetCspResourceId(nsId string, resourceType string, resourceId string) (stri
// content := resourceIds{}
// json.Unmarshal([]byte(keyValue.Value), &content)
// return content.CspSpecName, nil
case model.StrSubnet:
case model.StrVNet:
content := resourceIds{}
json.Unmarshal([]byte(keyValue.Value), &content)
return content.CspSubnetName, nil
return content.CspVNetName, nil // contains CspSubnetId
case model.StrSecurityGroup:
content := resourceIds{}
json.Unmarshal([]byte(keyValue.Value), &content)
Expand Down

0 comments on commit ff5a402

Please sign in to comment.