Why do I get an error in RHEV 3.5 when issuing API calls with values "0" or "1" for boolean parameters?
Issue
- When issuing API calls that have boolean parameters, using values
0
and1
results in the API call failing with the following error message:
host.nics.setupnetworks(params.Action(force = 0, check_connectivity = 1, host_nics = params.HostNics(host_nic = mynics)))
status: 400
reason: Bad Request
detail: Value "1" isn't a valid boolean, it should be "true" or "false"
Environment
- Red Hat Enterprise Virtualization 3.5.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.