Skip to content

listOsTypes respond returns isuserdefined as string #2529

Description

@resmo
ISSUE TYPE
  • Bug Report
  • Enhancement
COMPONENT NAME
API
CLOUDSTACK VERSION
4.11
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

listOsTypes returns isuserdefined as json string, instead of json bool

STEPS TO REPRODUCE
 $ cs listOsTypes id=1ee61d39-4b9a-11e7-8fea-0242ac110003 --region simulator 
EXPECTED RESULTS
{
"count": 1, "ostype": [
{
"description": "Windows XP SP3 (32-bit)", "id": "1ee61d39-4b9a-11e7-8fea-0242ac110003", "isuserdefined": false, "oscategoryid": "1ede7e9a-4b9a-11e7-8fea-0242ac110003"
}
]
}
ACTUAL RESULTS
{
"count": 1, "ostype": [
{
"description": "Windows XP SP3 (32-bit)", "id": "1ee61d39-4b9a-11e7-8fea-0242ac110003", "isuserdefined": "false", "oscategoryid": "1ede7e9a-4b9a-11e7-8fea-0242ac110003"
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions