Enable pylint duplicated-key check

Enables check and fixes:
ipatests/test_xmlrpc/test_permission_plugin.py:65:
[W0109(duplicate-key), ] Duplicate key 'ipapermlocation' in dictionary)

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti authored and Jan Cholasta committed 2015-12-23 07:59:22 +01:00
1 parent fb3eab7ec7
commit 89e16a8053
2 files changed
-2

No files matched your search

@@ -85,7 +85,6 @@ permission3_attributelevelrights = {
'ipapermtargetto': u'rscwo',
'ipapermtargetfrom': u'rscwo',
'ipapermbindruletype': u'rscwo',
'ipapermlocation': u'rscwo',
'ipapermtarget': u'rscwo',
'type': u'rscwo',
'targetgroup': u'rscwo',
-1
View File
@@ -256,7 +256,6 @@ def main():
linter.set_option('disable', 'bare-except')
linter.set_option('disable', 'broad-except')
linter.set_option('disable', 'dangerous-default-value')
linter.set_option('disable', 'duplicate-key')
linter.set_option('disable', 'eval-used')
linter.set_option('disable', 'exec-used')
linter.set_option('disable', 'expression-not-assigned')