Skip to content

Commit

Permalink
Query查询包状态,异常定位
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhiqian-chandler committed Nov 27, 2021
1 parent dadb0b8 commit 4a9711c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rescontroller/pkg/pluginAdapter/grpcclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func (c *ClientGRPC) QueryFlavor(ctx context.Context, hostIp, accessToken, tenan
}
resp, err := c.flavorClient.QueryFlavor(ctx, req)
if err != nil {
log.Error("Error ", err.Error())
return "", err
}
return resp.Response, err
Expand Down Expand Up @@ -265,6 +266,7 @@ func (c *ClientGRPC) QueryImages(ctx context.Context, hostIp, accessToken,
}
resp, err := c.vmImageClient.QueryVmImage(ctx, req)
if err != nil {
log.Error("Error ", err.Error())
return "", err
}
return resp.Response, err
Expand Down Expand Up @@ -372,6 +374,7 @@ func (c *ClientGRPC) QueryServer(ctx context.Context, hostIp, accessToken,
}
resp, err := c.vmClient.QueryVm(ctx, req)
if err != nil {
log.Error("Error ", err.Error())
return "", err
}
return resp.Response, err
Expand Down Expand Up @@ -459,6 +462,7 @@ func (c *ClientGRPC) QueryNetwork(ctx context.Context, hostIp, accessToken, tena
}
resp, err := c.networkClient.QueryNetwork(ctx, req)
if err != nil {
log.Error("Error ", err.Error())
return "", err
}
return resp.Response, err
Expand Down

0 comments on commit 4a9711c

Please sign in to comment.