Cleanup pylint error: attribute_defined_outside_init
un-suppress the pylint error check for attribute_defined_outside_init, and update the code to fix that error Test Plan: PASS: 'dcmanager subcloud list' command works PASS: Unit Tests passed Story: 2008943 Task: 43834 Signed-off-by: Jia Hu <jia.hu@windriver.com> Change-Id: I9bea9163f314407042fef8f560bbda5189c1c4ad
This commit is contained in:
parent
9c26d497e7
commit
e66b474385
|
@ -138,6 +138,9 @@ class DCManagerShell(app.App):
|
|||
# Set v1 commands by default
|
||||
self._set_shell_commands(self._get_commands(version=1))
|
||||
|
||||
self.client = None
|
||||
self.client_manager = None
|
||||
|
||||
def configure_logging(self):
|
||||
log_lvl = logging.DEBUG if self.options.debug else logging.WARNING
|
||||
logging.basicConfig(
|
||||
|
|
|
@ -116,7 +116,6 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
|
|||
# R detect Refactor for a "good practice" metric violation
|
||||
# C detect Convention for coding standard violation
|
||||
# W0107: unnecessary-pass
|
||||
# W0201: attribute-defined-outside-init
|
||||
# W0212: protected-access
|
||||
# W0231: super-init-not-called
|
||||
# W0403: relative-import (typically caused by six)
|
||||
|
@ -129,7 +128,7 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
|
|||
# W1618: no-absolute-import
|
||||
# E1102: not-callable
|
||||
disable=C,R,
|
||||
W0107,W0201,W0212,W0231,W0403,
|
||||
W0107,W0212,W0231,W0403,
|
||||
W0612,W0613,W0603,W0622,W0703,W1112,W1505,W1618,
|
||||
E1102
|
||||
|
||||
|
|
Loading…
Reference in New Issue