From 317378f742aafd59d0aaa6c5698bbda57cbfa15a Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Thu, 24 May 2012 06:56:15 -0700 Subject: Update pep8 dependency to v1.1 The latest release of pep8 adds stricter rules for extraneous whitespace within lines. This patch also addresses these new violations acoss the codebase. Change-Id: Ib7e50281870473df1704ed50868c5c2e26bdb02e --- nova/api/openstack/compute/contrib/hosts.py | 2 +- nova/api/openstack/compute/contrib/networks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/hosts.py b/nova/api/openstack/compute/contrib/hosts.py index d75aca718..e9d342c53 100644 --- a/nova/api/openstack/compute/contrib/hosts.py +++ b/nova/api/openstack/compute/contrib/hosts.py @@ -270,7 +270,7 @@ class HostController(object): vcpus = [i['vcpus'] for i in instance_refs if i['project_id'] == project_id] - mem = [i['memory_mb'] for i in instance_refs + mem = [i['memory_mb'] for i in instance_refs if i['project_id'] == project_id] disk = [i['root_gb'] + i['ephemeral_gb'] for i in instance_refs diff --git a/nova/api/openstack/compute/contrib/networks.py b/nova/api/openstack/compute/contrib/networks.py index 8b7a646a2..59bed97c2 100644 --- a/nova/api/openstack/compute/contrib/networks.py +++ b/nova/api/openstack/compute/contrib/networks.py @@ -82,7 +82,7 @@ class NetworkController(object): authorize(context) networks = self.network_api.get_all(context) result = [network_dict(net_ref) for net_ref in networks] - return {'networks': result} + return {'networks': result} def show(self, req, id): context = req.environ['nova.context'] -- cgit