summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2013-01-04 15:46:18 -0500
committerSean Dague <sdague@linux.vnet.ibm.com>2013-01-07 21:39:58 -0500
commit37bfdd3b38b2d2c2f088f67e7bcc2f26c6e01c1c (patch)
treef6a4d9354c3ea795fe5b270046a20fc6d21a12ca /nova/compute
parent9279e0052f300eb0f64d63c970d34c050d744906 (diff)
fix N401 errors, stop ignoring all N4* errors
We had previously been ignoring all our custom N4xx hacking.py errors. This fixes all the N401 errors "doc strings should not start with a space" and reduces the ignore set down to N402 only "single line docstrings should end with period". It also fixes the N401 parser to catch only docstrings, and not tripple quoted string blocks used later on in a function. Clean up a few of the more crazy uses of """ in our code Clean up additional funky comments to make indents a bit more consistent, and pull in lines when possible. Change-Id: I9040a1d2ca7efda83bd5e425b95d1408b5b63577
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py7
-rw-r--r--nova/compute/manager.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index abbc0bd92..f42891f89 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -313,9 +313,10 @@ class API(base.Base):
raise exception.InvalidMetadataSize(reason=msg)
def _check_requested_networks(self, context, requested_networks):
- """ Check if the networks requested belongs to the project
- and the fixed IP address for each network provided is within
- same the network block
+ """
+ Check if the networks requested belongs to the project
+ and the fixed IP address for each network provided is within
+ same the network block
"""
if not requested_networks:
return
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 80db50156..5a0113bf6 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -2779,7 +2779,7 @@ class ComputeManager(manager.SchedulerDependentManager):
instance_ref, dest)
def rollback_live_migration_at_destination(self, context, instance):
- """ Cleaning up image directory that is created pre_live_migration.
+ """Cleaning up image directory that is created pre_live_migration.
:param context: security context
:param instance: an Instance dict sent over rpc