Skip to content

OSType response: isuserdefined as string not bool #8127

Description

@tampler
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Core, API
CLOUDSTACK VERSION
ACS: 4.19.0.0-SNAPSHOT-20230815-075029
API: go v2.15.0
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

ACS response to cmk returns invalid type. API fails to parse the response

STEPS TO REPRODUCE
cmk list ostypes keyword=ubuntu
{
"description": "Ubuntu 9.10 (32-bit)",
"id": "4112ee99-3b43-11ee-a889-0242ac110003",
"isuserdefined": "false", << -------- This is BAD. String not bool, fails on type conversion
"name": "Ubuntu 9.10 (32-bit)",
"oscategoryid": "41040642-3b43-11ee-a889-0242ac110003",
"oscategoryname": "Ubuntu"
}
EXPECTED RESULTS
"isuserdefined": false (bool)
ACTUAL RESULTS
"isuserdefined": "false" (string)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions