From 335eb13cb416a065dcaaeddc56bb26b41fdcf7a5 Mon Sep 17 00:00:00 2001 From: wenqian Date: Tue, 22 Aug 2023 13:54:38 +0800 Subject: [PATCH] fix(meta): use uhostId to request DescribeUHostInstance (#32) --- pkg/uapi/meta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uapi/meta.go b/pkg/uapi/meta.go index 1293f34..3a545c9 100644 --- a/pkg/uapi/meta.go +++ b/pkg/uapi/meta.go @@ -84,7 +84,7 @@ func GetObjectIDForSecondaryIP() (string, error) { } req := cli.NewDescribeUHostInstanceRequest() - req.UHostIds = []string{} + req.UHostIds = []string{instanceId} resp, err := cli.DescribeUHostInstance(req) if err != nil || len(resp.UHostSet) == 0 { ulog.Errorf("DescribeUHostInstance for %v error: %v", instanceId, err)