Skip to content

Instantly share code, notes, and snippets.

@vishvananda
Created March 10, 2012 22:20
Show Gist options
  • Save vishvananda/2013605 to your computer and use it in GitHub Desktop.
Save vishvananda/2013605 to your computer and use it in GitHub Desktop.
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