diff options
| author | Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com> | 2012-08-20 12:49:17 -0400 |
|---|---|---|
| committer | Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com> | 2012-08-20 14:35:33 -0400 |
| commit | bb94747da49ba35aca8a4a431e89c26c60d41cd9 (patch) | |
| tree | d78d9f9c88c122343ab5b86fed5c28471c2f77b1 /nova/api | |
| parent | 8378f316454fe74d171a09ce9af91f1da6692c21 (diff) | |
| download | nova-bb94747da49ba35aca8a4a431e89c26c60d41cd9.tar.gz nova-bb94747da49ba35aca8a4a431e89c26c60d41cd9.tar.xz nova-bb94747da49ba35aca8a4a431e89c26c60d41cd9.zip | |
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
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
