summaryrefslogtreecommitdiffstats
path: root/ipaclient
diff options
context:
space:
mode:
authorArmando Neto <[email protected]>2018-07-10 17:14:04 -0300
committerChristian Heimes <[email protected]>2018-07-11 10:11:38 +0200
commitb4ad0d19a20cc66690e7f4e9c4327afeedff2ab2 (patch)
tree53458dd8bdb3c47853fb61df6a1c7e1bcc6d237b /ipaclient
parent9222a08c288159a7a150923a2eb825a47da36a13 (diff)
downloadfreeipa-b4ad0d19a20cc66690e7f4e9c4327afeedff2ab2.tar.gz
freeipa-b4ad0d19a20cc66690e7f4e9c4327afeedff2ab2.tar.xz
freeipa-b4ad0d19a20cc66690e7f4e9c4327afeedff2ab2.zip
Fix pylint 2.0 return-related violations
Aiming to support pylint 2.0 some functions and methods must have their return statements updated in order to fix two new violations: - `useless-return` (R1711): Useless return at end of function or method Emitted when a single "return" or "return None" statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None - `inconsistent-return-statements` (R1710): Either all return statements in a function should return an expression, or none of them should. According to PEP8, if any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable) Issue: https://pagure.io/freeipa/issue/7614 Signed-off-by: Armando Neto <[email protected]> Reviewed-By: Christian Heimes <[email protected]>
Diffstat (limited to 'ipaclient')
-rw-r--r--ipaclient/install/ipadiscovery.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipaclient/install/ipadiscovery.py b/ipaclient/install/ipadiscovery.py
index a8283d8e6..480032557 100644
--- a/ipaclient/install/ipadiscovery.py
+++ b/ipaclient/install/ipadiscovery.py
@@ -549,6 +549,7 @@ class IPADiscovery(object):
continue
if realm:
return realm
+ return None
def ipadnssearchkrbkdc(self, domain=None):
kdc = None
OSZAR »