Enable Flake8 E12X Errors
Flake8 currently ignores the following Errors: E121: continuation line under-indented for hanging indent E123: closing bracket doesn't match indentation of opening bracket E124: closing bracket doesn't match visual indentation E125: continuation line with same indent as next logical line E126: continuation line over-indented for hanging indent E127: continuation line over-indented for visual indent E128: continuation line under-indented for visual indent Enable them for more consistent formatting of code Change-Id: I415d4824a1f335ba3fceb488b0ae60b9861a036a Story: 2004515 Task: 30076 Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
This commit is contained in:
parent
2d1fe53be4
commit
dc4fd1e39b
|
@ -33,13 +33,13 @@ class CephManagerException(Exception):
|
||||||
|
|
||||||
class CephPoolSetQuotaFailure(CephManagerException):
|
class CephPoolSetQuotaFailure(CephManagerException):
|
||||||
message = _("Error seting the OSD pool "
|
message = _("Error seting the OSD pool "
|
||||||
"quota %(name)s for %(pool)s to %(value)s") \
|
"quota %(name)s for %(pool)s to "
|
||||||
+ ": %(reason)s"
|
"%(value)s") + ": %(reason)s"
|
||||||
|
|
||||||
|
|
||||||
class CephPoolGetQuotaFailure(CephManagerException):
|
class CephPoolGetQuotaFailure(CephManagerException):
|
||||||
message = _("Error geting the OSD pool quota for %(pool)s") \
|
message = _("Error geting the OSD pool quota for "
|
||||||
+ ": %(reason)s"
|
"%(pool)s") + ": %(reason)s"
|
||||||
|
|
||||||
|
|
||||||
class CephPoolCreateFailure(CephManagerException):
|
class CephPoolCreateFailure(CephManagerException):
|
||||||
|
|
|
@ -147,10 +147,10 @@ class LogMgmtDaemon():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Ignore some files
|
# Ignore some files
|
||||||
if '/var/log/puppet' in fname \
|
if ('/var/log/puppet' in fname
|
||||||
or '/var/log/dmesg' in fname \
|
or '/var/log/dmesg' in fname
|
||||||
or '/var/log/rabbitmq' in fname \
|
or '/var/log/rabbitmq' in fname
|
||||||
or '/var/log/lastlog' in fname:
|
or '/var/log/lastlog' in fname):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if os.path.exists(fname):
|
if os.path.exists(fname):
|
||||||
|
|
|
@ -14,6 +14,5 @@ setuptools.setup(name='logmgmt',
|
||||||
description='logmgmt',
|
description='logmgmt',
|
||||||
license='Apache-2.0',
|
license='Apache-2.0',
|
||||||
packages=['logmgmt'],
|
packages=['logmgmt'],
|
||||||
entry_points={
|
entry_points={}
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue