diff options
| author | Brian Waldon <bcwaldon@gmail.com> | 2012-05-24 06:56:15 -0700 |
|---|---|---|
| committer | Brian Waldon <bcwaldon@gmail.com> | 2012-05-24 06:59:05 -0700 |
| commit | 317378f742aafd59d0aaa6c5698bbda57cbfa15a (patch) | |
| tree | 6903bc2a95296a592a90372d6b0e6122ad5940e4 /nova/api | |
| parent | e3d7d3a805355340f27b9626f83eda329f358fda (diff) | |
| download | nova-317378f742aafd59d0aaa6c5698bbda57cbfa15a.tar.gz nova-317378f742aafd59d0aaa6c5698bbda57cbfa15a.tar.xz nova-317378f742aafd59d0aaa6c5698bbda57cbfa15a.zip | |
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
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/hosts.py | 2 | ||||
| -rw-r--r-- | nova/api/openstack/compute/contrib/networks.py | 2 |
2 files changed, 2 insertions, 2 deletions
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'] |
