diff options
| author | William Wolf <throughnothing@gmail.com> | 2011-08-10 11:37:44 -0400 |
|---|---|---|
| committer | William Wolf <throughnothing@gmail.com> | 2011-08-10 11:37:44 -0400 |
| commit | 057449d4f96fd168b2e949b6ce429ce012911bec (patch) | |
| tree | af4f6640fbfe3702e2fa0852ebea46694b7695e5 /nova/api | |
| parent | caf7312a479a634ab02ccf38f53d510d20e25646 (diff) | |
| download | nova-057449d4f96fd168b2e949b6ce429ce012911bec.tar.gz nova-057449d4f96fd168b2e949b6ce429ce012911bec.tar.xz nova-057449d4f96fd168b2e949b6ce429ce012911bec.zip | |
fix pep8 issues
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/contrib/floating_ips.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/floating_ips.py b/nova/api/openstack/contrib/floating_ips.py index 52c9c6cf9..2aba1068a 100644 --- a/nova/api/openstack/contrib/floating_ips.py +++ b/nova/api/openstack/contrib/floating_ips.py @@ -102,7 +102,7 @@ class FloatingIPController(object): def delete(self, req, id): context = req.environ['nova.context'] ip = self.network_api.get_floating_ip(context, id) - + if 'fixed_ip' in ip: try: self.disassociate(req, id, '') diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 45d7dc214..fec319d8e 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -647,7 +647,7 @@ class ControllerV11(Controller): base_url, project_id) addresses_builder = nova.api.openstack.views.addresses.ViewBuilderV11() builder = nova.api.openstack.views.servers.ViewBuilderV11( - addresses_builder, flavor_builder, image_builder, + addresses_builder, flavor_builder, image_builder, base_url, project_id) return builder.build(instance, is_detail=is_detail) |
