Skip to content

Instantly share code, notes, and snippets.

@sdague
Created May 24, 2017 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdague/863d31d4dba44193c6095b21566cd7fa to your computer and use it in GitHub Desktop.
Save sdague/863d31d4dba44193c6095b21566cd7fa to your computer and use it in GitHub Desktop.
diff --git a/nova/api/openstack/compute/hide_server_addresses.py b/nova/api/openstack/compute/hide_server_addresses.py
index 07f23599df..6ea55be27f 100644
--- a/nova/api/openstack/compute/hide_server_addresses.py
+++ b/nova/api/openstack/compute/hide_server_addresses.py
@@ -59,7 +59,7 @@ class Controller(wsgi.Controller):
return
if 'server' in resp.obj and 'addresses' in resp.obj['server']:
- instance = req.get_db_instance(id)
+ instance = req.get_db_instance(resp.obj['server']['id'])
self._perhaps_hide_addresses(instance, resp.obj['server'])
@wsgi.extends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment