From bb94747da49ba35aca8a4a431e89c26c60d41cd9 Mon Sep 17 00:00:00 2001 From: "Mauro S. M. Rodrigues" Date: Mon, 20 Aug 2012 12:49:17 -0400 Subject: Add key_name attribute in XML servers API Fixes bug 1039139 The API was ignoring the 'key_name' attribute and so it was impossible to create a server associated with a keypair. This patch fix the issue. Change-Id: I1efe542081382f3a19b31c09ddfc93929b1485d0 --- nova/api/openstack/compute/servers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index 0c5a2e530..a7baf62d7 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -158,7 +158,7 @@ class CommonDeserializer(wsgi.MetadataXMLDeserializer): server_node = self.find_first_child_named(node, 'server') attributes = ["name", "imageRef", "flavorRef", "adminPass", - "accessIPv4", "accessIPv6"] + "accessIPv4", "accessIPv6", "key_name"] for attr in attributes: if server_node.getAttribute(attr): server[attr] = server_node.getAttribute(attr) -- cgit