summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2011-03-17 07:57:06 -0400
committerChuck Short <zulcss@ubuntu.com>2011-03-17 07:57:06 -0400
commit9ba500c304595dff037da296f26cb13d02bfbc04 (patch)
treed88b0e7b1e82dcf929e4a27bb8f1540181219799
parent70cd1a51ada85f4724190d2562130172e9495e5e (diff)
downloadnova-9ba500c304595dff037da296f26cb13d02bfbc04.tar.gz
nova-9ba500c304595dff037da296f26cb13d02bfbc04.tar.xz
nova-9ba500c304595dff037da296f26cb13d02bfbc04.zip
Fix pep8 errors
-rw-r--r--nova/tests/test_virt.py2
-rw-r--r--nova/virt/disk.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py
index 92c80272b..7d50960a3 100644
--- a/nova/tests/test_virt.py
+++ b/nova/tests/test_virt.py
@@ -326,7 +326,6 @@ class LibvirtConnTestCase(test.TestCase):
check = (lambda t: t.find('./os/initrd'), None)
check_list.append(check)
-
common_checks = [
(lambda t: t.find('.').tag, 'domain'),
(lambda t: t.find(
@@ -372,7 +371,6 @@ class LibvirtConnTestCase(test.TestCase):
expected_result,
'%s failed check %d' % (xml, i))
-
for i, (check, expected_result) in enumerate(common_checks):
self.assertEqual(check(tree),
expected_result,
diff --git a/nova/virt/disk.py b/nova/virt/disk.py
index a44995613..26976940e 100644
--- a/nova/virt/disk.py
+++ b/nova/virt/disk.py
@@ -129,6 +129,7 @@ def setup_container(image, container_dir=None, partition=None, nbd=False):
% err)
_unlink_device(device, nbd)
+
def destroy_container(target, instance, nbd=False):
"""Destroy the container once it terminates