From f86ec68be715073fbdcc6ef21f6053deea710289 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 20 Feb 2012 12:21:59 -0800 Subject: Stop ignoring E202. There is absolutely no reason to ignore E202 in the pep8 checks. Change-Id: I4abf767639dd94e9e8b7b4a405b4a702a554b876 --- nova/tests/api/openstack/compute/test_servers.py | 2 +- nova/virt/disk/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nova') diff --git a/nova/tests/api/openstack/compute/test_servers.py b/nova/tests/api/openstack/compute/test_servers.py index 4a78c3c3a..e9607bd7c 100644 --- a/nova/tests/api/openstack/compute/test_servers.py +++ b/nova/tests/api/openstack/compute/test_servers.py @@ -2140,7 +2140,7 @@ class ServersControllerCreateTest(test.TestCase): res = self.controller.create(req, body).obj server = res['server'] - self.assertTrue('adminPass' in body['server'] ) + self.assertTrue('adminPass' in body['server']) self.assertTrue('adminPass' not in server) def test_create_instance_admin_pass_empty(self): diff --git a/nova/virt/disk/api.py b/nova/virt/disk/api.py index 51e8f1907..42ad683a6 100644 --- a/nova/virt/disk/api.py +++ b/nova/virt/disk/api.py @@ -397,7 +397,7 @@ def _set_passwd(username, admin_passwd, passwd_file, shadow_file): 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' '0123456789./') # encryption algo - id pairs for crypt() - algos = {'SHA-512': '$6$', 'SHA-256': '$5$', 'MD5': '$1$', 'DES': '' } + algos = {'SHA-512': '$6$', 'SHA-256': '$5$', 'MD5': '$1$', 'DES': ''} salt = 16 * ' ' salt = ''.join([random.choice(salt_set) for c in salt]) -- cgit