Created
March 10, 2012 22:20
-
-
Save vishvananda/2013605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/nova/api/openstack/compute/contrib/extended_server_attributes.py b/nova/api/openstack/compute/contrib/extended_server_attributes.py | |
index c1c85c6..aef578f 100644 | |
--- a/nova/api/openstack/compute/contrib/extended_server_attributes.py | |
+++ b/nova/api/openstack/compute/contrib/extended_server_attributes.py | |
@@ -69,7 +69,7 @@ class ExtendedServerAttributesController(wsgi.Controller): | |
context = req.environ['nova.context'] | |
if authorize(context): | |
# Attach our slave template to the response object | |
- resp_obj.attach(xml=ExtendedServerAttributesTemplate()) | |
+ resp_obj.attach(xml=ExtendedServerAttributeTemplate()) | |
try: | |
instance = self.compute_api.get(context, id) | |
@@ -84,7 +84,7 @@ class ExtendedServerAttributesController(wsgi.Controller): | |
context = req.environ['nova.context'] | |
if authorize(context): | |
# Attach our slave template to the response object | |
- resp_obj.attach(xml=ExtendedServerAttributesTemplate()) | |
+ resp_obj.attach(xml=ExtendedServerAttributeTemplate()) | |
servers = list(resp_obj.obj['servers']) | |
instance_uuids = [server['id'] for server in servers] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment