Skip to content

Commit

Permalink
fix(meta): use uhostId to request DescribeUHostInstance (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Aug 22, 2023
1 parent 0993aae commit 335eb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/uapi/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 335eb13

Please sign in to comment.