summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2011-08-04 10:34:36 -0700
committerChris Behrens <cbehrens@codestud.com>2011-08-04 10:34:36 -0700
commit7f35619377593b5bb30425984999e8bb9ed2bdb2 (patch)
tree062f12d35913d69ba0f2628e106ab17769b9e51f
parent24b308ebb4f7fff5520383248170bfb7d51c6755 (diff)
fix pep8 issues that are in trunk
-rw-r--r--nova/compute/manager.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 94bac9be4..9f566dea7 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -167,10 +167,12 @@ class ComputeManager(manager.SchedulerDependentManager):
'nova-compute restart.'), locals())
self.reboot_instance(context, instance['id'])
elif drv_state == power_state.RUNNING:
- try: # Hyper-V and VMWareAPI drivers will raise and exception
+ # Hyper-V and VMWareAPI drivers will raise and exception
+ try:
self.driver.ensure_filtering_rules_for_instance(instance)
except NotImplementedError:
- LOG.warning(_('Hypervisor driver does not support firewall rules'))
+ LOG.warning(_('Hypervisor driver does not '
+ 'support firewall rules'))
def _update_state(self, context, instance_id, state=None):
"""Update the state of an instance from the driver info."""