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
0and1results 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
