summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2012-11-29 11:20:21 +0100
committerMichal Minar <miminar@redhat.com>2012-11-29 11:20:21 +0100
commitf1a2bbd99380602bc4d33833f1bc78e38899ae08 (patch)
treec17ef006cd413cc655c3390b4a8f088968e81951 /tools
parent148b5b7d18c449b87b1103c05612ff2a2fe83233 (diff)
downloadopenlmi-providers-f1a2bbd99380602bc4d33833f1bc78e38899ae08.tar.gz
openlmi-providers-f1a2bbd99380602bc4d33833f1bc78e38899ae08.tar.xz
openlmi-providers-f1a2bbd99380602bc4d33833f1bc78e38899ae08.zip
fixed most of pylint errors
also modified mof, so it's better parseable greatly reduced pylint errors and warnings LMI_SoftwareInstalledPackage now returns reference to Linux_ComputerSystem instead of CIM_ComputerSystem
Diffstat (limited to 'tools')
-rw-r--r--tools/pylint/plugins/cim_provider_checker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py
index 253cb9d..f46e173 100644
--- a/tools/pylint/plugins/cim_provider_checker.py
+++ b/tools/pylint/plugins/cim_provider_checker.py
@@ -42,6 +42,9 @@ def supress_cim_provider_messages(linter, node):
@param node is a subclass of CIMProvider2
"""
assert isinstance(node, scoped_nodes.Class)
+ if '__init__' in node:
+ linter.disable('W0231', scope='module',
+ line=node['__init__'].lineno)
if ( 'Values' in node
and isinstance(node['Values'], scoped_nodes.Class)):
linter.disable('R0903', scope='module', line=node['Values'].lineno)