Enable Flake8 300 Series Errors
Flake8 currently ignores the following errors: E302: expected 2 blank lines[COMMA] found 1 E303: too many blank lines E305: expected 2 blank lines after class or function definition, found 1 Change-Id: Idfb00e530967f1a345bc2e263ad77597f83cc5d3 Story: 2004515 Task: 30076 Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
This commit is contained in:
parent
bbab770f6e
commit
70bbb84587
@ -45,6 +45,7 @@ class CPU:
|
||||
|
||||
collectd.error("%s %s" % (PLUGIN, err_str))
|
||||
|
||||
|
||||
# Instantiate the class
|
||||
c = CPU()
|
||||
|
||||
|
@ -388,6 +388,7 @@ def notifier_func(nObject):
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
collectd.register_config(config_func)
|
||||
collectd.register_init(init_func)
|
||||
collectd.register_notification(notifier_func)
|
||||
|
@ -97,6 +97,7 @@ class NtpqObject:
|
||||
repair = "Monitor and if condition persists, "
|
||||
repair += "contact next level of support."
|
||||
|
||||
|
||||
# This plugin's class object - persists over read calls
|
||||
obj = NtpqObject()
|
||||
|
||||
|
@ -489,6 +489,7 @@ def list_to_range(L=None):
|
||||
return ",".join(
|
||||
"-".join(map(str, (g[0][1], g[-1][1])[:len(g)])) for g in G)
|
||||
|
||||
|
||||
def range_to_list(csv_range=None):
|
||||
""" Convert a string of comma separate ranges into an expanded list of
|
||||
integers. E.g., '1-3,8-9,15' is converted to [1,2,3,8,9,15]
|
||||
@ -1470,7 +1471,6 @@ def get_info_and_display(show=None):
|
||||
'error'
|
||||
]
|
||||
|
||||
|
||||
# Get keystone credentials from nova.conf
|
||||
auth = keystone.load_auth_from_conf_options(CONF, AUTHTOKEN_GROUP)
|
||||
keystone_session = session.Session(auth=auth)
|
||||
|
Loading…
Reference in New Issue
Block a user