summaryrefslogtreecommitdiffstats
path: root/pylint_plugins.py
diff options
context:
space:
mode:
authorLenka Doudova <ldoudova@redhat.com>2016-10-14 10:06:27 +0200
committerMartin Babinsky <mbabinsk@redhat.com>2016-11-14 14:32:10 +0100
commit46aa41444521a1746d584b703054e2a971915dc6 (patch)
tree88a3c54bf85147486e333d819f264c8d7fcf432d /pylint_plugins.py
parent3938698e07404acfd7ae84fcaae9c02850d1afa7 (diff)
downloadfreeipa-46aa41444521a1746d584b703054e2a971915dc6.tar.gz
freeipa-46aa41444521a1746d584b703054e2a971915dc6.tar.xz
freeipa-46aa41444521a1746d584b703054e2a971915dc6.zip
Add file_exists method as a member of transport object
Method file_exists is reported by pylint as not being a member of transport object, however it is used as such. Adding the method to object to avoid pylint errors or unnecessary pylint disable. https://fedorahosted.org/freeipa/ticket/6400 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'pylint_plugins.py')
-rw-r--r--pylint_plugins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint_plugins.py b/pylint_plugins.py
index bf357737c..fc2ce9bb3 100644
--- a/pylint_plugins.py
+++ b/pylint_plugins.py
@@ -237,7 +237,7 @@ ipa_class_members = {
'stderr_text',
'returncode',
]},
- {'transport': ['put_file']},
+ {'transport': ['put_file', 'file_exists']},
'put_file_contents',
'get_file_contents',
'ldap_connect',