1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-03 13:47:01 +03:00

F #2830: Fix merge of PR #3113

This commit is contained in:
Ruben S. Montero 2019-04-01 10:07:18 +02:00
parent 39a06f0f39
commit eecb5bdc9f
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -209,11 +209,8 @@ func (c *oneClient) endpointCall(url string, method string, args ...interface{})
if ok == false {
bodyInt, ok = result[1].(int64)
if ok == false {
bodyBool, ok = result[1].(bool)
if ok == false {
return nil,
&ClientError{ClientRespONeParse, "index 1: boolean expected", resp, nil}
}
return nil,
&ClientError{ClientRespONeParse, "index 1: int or string expected", resp, nil}
}
}