Skip to content

Commit

Permalink
fix: Patch #32 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Jan 24, 2024
1 parent a5504a4 commit d2fa734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cnivpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,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 {
log.Errorf("DescribeUHostInstance for %v failed, %v", instanceId, err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ipamd/uapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (s *ipamServer) getObjectIDforSecondaryIp() (string, error) {
return "", err
}
req := cli.NewDescribeUHostInstanceRequest()
req.UHostIds = []string{}
req.UHostIds = []string{instanceId}
resp, err := cli.DescribeUHostInstance(req)
if err != nil || len(resp.UHostSet) == 0 {
klog.Errorf("DescribeUHostInstance for %v failed, %v", instanceId, err)
Expand Down

0 comments on commit d2fa734

Please sign in to comment.