From d68d2fba65528b1d60f42817b2043cfbf1fea7ef Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Fri, 14 Sep 2012 07:43:35 -0700 Subject: Fix XML deserialization of rebuild parameters This picks up the following attributes which are currently ignored when poking this via XML: - accessIPv4 - accessIPv6 - adminPass Change-Id: I947aa2f942022d839919ae7516759955e5b06668 --- nova/api/openstack/compute/servers.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index ba23cb50b..66e30de75 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -282,6 +282,15 @@ class ActionDeserializer(CommonDeserializer): raise AttributeError("No imageRef was specified in request") rebuild["imageRef"] = node.getAttribute("imageRef") + if node.hasAttribute("adminPass"): + rebuild["adminPass"] = node.getAttribute("adminPass") + + if node.hasAttribute("accessIPv4"): + rebuild["accessIPv4"] = node.getAttribute("accessIPv4") + + if node.hasAttribute("accessIPv6"): + rebuild["accessIPv6"] = node.getAttribute("accessIPv6") + return rebuild def _action_resize(self, node): -- cgit