37c618da7c
Updates the os-services API extension so that it is consistent internally (index and update return similar formats), and so that it works with the recent novaclient code which sends the following request body format: {"binary": "nova-cert", "host": "nova1"} Also, updates the response body format of the update call so that it wraps things in an extra service dict which should make novaclient happier here as well (and is consistent with other extensions too). Fixes LP Bug #1147746. Change-Id: I932160d64fdd3aaeb2ed90a092ecc7a36dcc9665
8 lines
115 B
JSON
8 lines
115 B
JSON
{
|
|
"service": {
|
|
"host": "host1",
|
|
"binary": "nova-compute",
|
|
"status": "disabled"
|
|
}
|
|
}
|