Fix typo in the XML serialization os-services API.
Partially implements blueprint nova-api-samples fixes bug 1130609 The XML serializer for the update method in the os-services API extensions was not serializing the "updated_at" field because of a typo in the code. In this change we added api_samples for the XML output. Change-Id: I9fff0677e9bad650b19e559b3ed6e9bc0ffe8c3c
This commit is contained in:
2
doc/api_samples/os-services/service-disable-put-req.xml
Normal file
2
doc/api_samples/os-services/service-disable-put-req.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<service host="host1" binary="nova-compute" />
|
||||
2
doc/api_samples/os-services/service-disable-put-resp.xml
Normal file
2
doc/api_samples/os-services/service-disable-put-resp.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<service host="host1" binary="nova-compute" status="disabled" />
|
||||
2
doc/api_samples/os-services/service-enable-put-req.xml
Normal file
2
doc/api_samples/os-services/service-enable-put-req.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<service host="host1" binary="nova-compute" />
|
||||
2
doc/api_samples/os-services/service-enable-put-resp.xml
Normal file
2
doc/api_samples/os-services/service-enable-put-resp.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<service host="host1" binary="nova-compute" status="enabled" />
|
||||
6
doc/api_samples/os-services/services-list-get-resp.xml
Normal file
6
doc/api_samples/os-services/services-list-get-resp.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<services>
|
||||
<service status="disabled" binary="nova-scheduler" zone="internal" state="up" host="host1" updated_at="2012-10-29T13:42:02.000000"/>
|
||||
<service status="disabled" binary="nova-compute" zone="nova" state="up" host="host1" updated_at="2012-10-29T13:42:05.000000" />
|
||||
<service status="enabled" binary="nova-scheduler" zone="internal" state="down" host="host2" updated_at="2012-09-19T06:55:34.000000"/>
|
||||
<service status="disabled" binary="nova-compute" zone="nova" state="down" host="host2" updated_at="2012-09-18T08:03:38.000000"/>
|
||||
</services>
|
||||
Reference in New Issue
Block a user