From ff5a4029edc2fe56dc37389ef931b75487fb165b Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Mon, 2 Sep 2024 15:12:12 +0900 Subject: [PATCH] Revert type miss-matching --- src/core/resource/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/resource/common.go b/src/core/resource/common.go index 30aa25688..524621f6e 100644 --- a/src/core/resource/common.go +++ b/src/core/resource/common.go @@ -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)