df60f2cd33
If a service is enabled, the "disabled_reason" field in response for /v2/.{tenant_id}./os-services/detail is null, however, currently it's specified as "" in the doc, thus may be confusing to users. This patch change the template and doc, it should not cause issue to existing applications. Change-Id: Ia71ec4c97a355bcc1a7b63e6107db77f80a5d843 Close-bug: 1328382
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"services": [
|
|
{
|
|
"id": 1,
|
|
"binary": "nova-scheduler",
|
|
"disabled_reason": "test1",
|
|
"host": "host1",
|
|
"state": "up",
|
|
"status": "disabled",
|
|
"updated_at": "2012-10-29T13:42:02.000000",
|
|
"zone": "internal"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"binary": "nova-compute",
|
|
"disabled_reason": "test2",
|
|
"host": "host1",
|
|
"state": "up",
|
|
"status": "disabled",
|
|
"updated_at": "2012-10-29T13:42:05.000000",
|
|
"zone": "nova"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"binary": "nova-scheduler",
|
|
"disabled_reason": null,
|
|
"host": "host2",
|
|
"state": "down",
|
|
"status": "enabled",
|
|
"updated_at": "2012-09-19T06:55:34.000000",
|
|
"zone": "internal"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"binary": "nova-compute",
|
|
"disabled_reason": "test4",
|
|
"host": "host2",
|
|
"state": "down",
|
|
"status": "disabled",
|
|
"updated_at": "2012-09-18T08:03:38.000000",
|
|
"zone": "nova"
|
|
}
|
|
]
|
|
}
|