mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-03 13:47:01 +03:00
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
This commit is contained in:
parent
17a30188fb
commit
4b81845135
@ -179,7 +179,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{})
|
||||
resp.Body.Close()
|
||||
if err != nil {
|
||||
return nil,
|
||||
&ClientError{Code: ClientRespHTTP, msg: "read http response body", err: err}
|
||||
&ClientError{ClientRespHTTP, "read http response body", resp, err}
|
||||
}
|
||||
|
||||
// Server side XML-RPC library: xmlrpc-c
|
||||
@ -204,7 +204,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{})
|
||||
status, ok = result[0].(bool)
|
||||
if ok == false {
|
||||
return nil,
|
||||
&ClientError{ClientRespONeParse, "index 0: boolean expected", resp, err}
|
||||
&ClientError{ClientRespONeParse, "index 0: boolean expected", resp, nil}
|
||||
}
|
||||
|
||||
body, ok = result[1].(string)
|
||||
@ -214,7 +214,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{})
|
||||
bodyBool, ok = result[1].(bool)
|
||||
if ok == false {
|
||||
return nil,
|
||||
&ClientError{ClientRespONeParse, "index 1: boolean expected", resp, err}
|
||||
&ClientError{ClientRespONeParse, "index 1: boolean expected", resp, nil}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -222,7 +222,7 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{})
|
||||
errCode, ok = result[2].(int64)
|
||||
if ok == false {
|
||||
return nil,
|
||||
&ClientError{ClientRespONeParse, "index 2: boolean expected", resp, err}
|
||||
&ClientError{ClientRespONeParse, "index 2: boolean expected", resp, nil}
|
||||
}
|
||||
|
||||
if status == false {
|
||||
|
Loading…
x
Reference in New Issue
Block a user