Why do I get an error in RHEV 3.5 when issuing API calls with values "0" or "1" for boolean parameters?

Solution In Progress - Updated -

Issue

  • When issuing API calls that have boolean parameters, using values 0 and 1 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content