summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Panchenko <apanchenko@mirantis.com>2016-11-15 19:13:06 +0200
committerArtem Panchenko <apanchenko@mirantis.com>2016-11-15 19:13:06 +0200
commit39dbbf5f56719f44b1a13b96ffa825955eab5132 (patch)
tree2fe37550b897026a39ee82595779c4915c899bb5
parent89d1563e5fa839c4177f9ebeb9afd616a405a83f (diff)
Fix PEP8 errors (E305)
Since flake8 3.2.0 is released [0] it also checks E305 rule: 2 blank lines are expected after class or function definition. [0] http://flake8.pycqa.org/en/latest/release-notes/3.2.0.html Change-Id: I0f4074efefefbd0b510b841625be18ea2f14bded
Notes
Notes (review): Code-Review+2: Dennis Dmitriev <ddmitriev@mirantis.com> Code-Review+2: tatyana-leontovich <tleontovich@mirantis.com> Code-Review+1: Artem Grechanichenko <agrechanichenko@mirantis.com> Workflow+1: Dmitry Tyzhnenko <dtyzhnenko@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 15 Nov 2016 20:56:17 +0000 Reviewed-on: https://review.openstack.org/397840 Project: openstack/fuel-ccp-tests Branch: refs/heads/master
-rw-r--r--fuel_ccp_tests/helpers/ext.py2
-rw-r--r--fuel_ccp_tests/logger.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/fuel_ccp_tests/helpers/ext.py b/fuel_ccp_tests/helpers/ext.py
index a32fde3..21ab2c4 100644
--- a/fuel_ccp_tests/helpers/ext.py
+++ b/fuel_ccp_tests/helpers/ext.py
@@ -23,6 +23,7 @@ def enum(*values, **kwargs):
23 return collections.namedtuple('Enum', names)(*values) 23 return collections.namedtuple('Enum', names)(*values)
24 return collections.namedtuple('Enum', values)(*values) 24 return collections.namedtuple('Enum', values)(*values)
25 25
26
26NODE_ROLE = enum( 27NODE_ROLE = enum(
27 'master', 28 'master',
28 'slave', 29 'slave',
@@ -85,6 +86,7 @@ class HttpCodes(enumerate):
85class Namespace(enumerate): 86class Namespace(enumerate):
86 BASE_NAMESPACE = 'ccp' 87 BASE_NAMESPACE = 'ccp'
87 88
89
88DEFAULT_REPOS = ['fuel-ccp-debian-base', 90DEFAULT_REPOS = ['fuel-ccp-debian-base',
89 'fuel-ccp-entrypoint', 91 'fuel-ccp-entrypoint',
90 'fuel-ccp-etcd', 92 'fuel-ccp-etcd',
diff --git a/fuel_ccp_tests/logger.py b/fuel_ccp_tests/logger.py
index 7500feb..5d33614 100644
--- a/fuel_ccp_tests/logger.py
+++ b/fuel_ccp_tests/logger.py
@@ -42,6 +42,7 @@ class NoDebugMessageFilter(logging.Filter):
42 def filter(self, record): 42 def filter(self, record):
43 return not record.levelno <= logging.DEBUG 43 return not record.levelno <= logging.DEBUG
44 44
45
45logging.getLogger('paramiko.transport').addFilter(NoDebugMessageFilter()) 46logging.getLogger('paramiko.transport').addFilter(NoDebugMessageFilter())
46logging.getLogger('paramiko.hostkeys').addFilter(NoDebugMessageFilter()) 47logging.getLogger('paramiko.hostkeys').addFilter(NoDebugMessageFilter())
47logging.getLogger('iso8601.iso8601').addFilter(NoDebugMessageFilter()) 48logging.getLogger('iso8601.iso8601').addFilter(NoDebugMessageFilter())
@@ -70,4 +71,5 @@ def debug(logger):
70 return wrapped 71 return wrapped
71 return wrapper 72 return wrapper
72 73
74
73logwrap = debug(logger) 75logwrap = debug(logger)