summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-07-14 11:28:46 -0400
committerScott Moser <smoser@ubuntu.com>2016-07-14 11:28:46 -0400
commita11fff3d087ba2fa1fcae80ece1eaf8d4b0fbe3d (patch)
tree8aa677d81dd28838dbc990911535e6fc225f04c6
parenteec0498b058fcdc913ccf9286f803b148598b34f (diff)
downloadcloud-init-a11fff3d087ba2fa1fcae80ece1eaf8d4b0fbe3d.tar.gz
fix tox flake8
-rw-r--r--cloudinit/config/cc_mcollective.py2
-rw-r--r--tests/unittests/test_handler/test_handler_mcollective.py28
2 files changed, 15 insertions, 15 deletions
diff --git a/cloudinit/config/cc_mcollective.py b/cloudinit/config/cc_mcollective.py
index 47320d5d..0c84d600 100644
--- a/cloudinit/config/cc_mcollective.py
+++ b/cloudinit/config/cc_mcollective.py
@@ -26,8 +26,8 @@ from six import BytesIO
# and doesn't need a top level section
from configobj import ConfigObj
-from cloudinit import util
from cloudinit import log as logging
+from cloudinit import util
PUBCERT_FILE = "/etc/mcollective/ssl/server-public.pem"
PRICERT_FILE = "/etc/mcollective/ssl/server-private.pem"
diff --git a/tests/unittests/test_handler/test_handler_mcollective.py b/tests/unittests/test_handler/test_handler_mcollective.py
index 0e3fcc8c..f9448d80 100644
--- a/tests/unittests/test_handler/test_handler_mcollective.py
+++ b/tests/unittests/test_handler/test_handler_mcollective.py
@@ -43,18 +43,18 @@ class TestConfig(helpers.FilesystemMockingTestCase):
contents = util.load_file("/etc/mcollective/server.cfg", decode=False)
contents = configobj.ConfigObj(BytesIO(contents))
expected = {
- 'loglevel': 'debug',
- 'connector': 'rabbitmq',
- 'logfile': '/var/log/mcollective.log',
- 'ttl': '4294957',
- 'collectives': 'mcollective',
- 'main_collective': 'mcollective',
- 'securityprovider': 'psk',
- 'daemonize': '1',
- 'factsource': 'yaml',
- 'direct_addressing': '1',
- 'plugin.psk': 'unset',
- 'libdir': '/usr/share/mcollective/plugins',
- 'identity': '1',
- }
+ 'loglevel': 'debug',
+ 'connector': 'rabbitmq',
+ 'logfile': '/var/log/mcollective.log',
+ 'ttl': '4294957',
+ 'collectives': 'mcollective',
+ 'main_collective': 'mcollective',
+ 'securityprovider': 'psk',
+ 'daemonize': '1',
+ 'factsource': 'yaml',
+ 'direct_addressing': '1',
+ 'plugin.psk': 'unset',
+ 'libdir': '/usr/share/mcollective/plugins',
+ 'identity': '1',
+ }
self.assertEqual(expected, dict(contents))