freeipa/ipaserver/plugins
Armando Neto b4ad0d19a2 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 <abiagion@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-07-11 10:11:38 +02:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
automember.py LGTM: raise handle_not_found() 2018-01-09 07:53:28 +01:00
automount.py Reworked the renaming mechanism 2017-03-27 19:08:26 +02:00
baseldap.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
baseuser.py Revert "Don't allow OTP or RADIUS in FIPS mode" 2018-03-12 13:29:19 -04:00
batch.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
ca.py ldap2: fix implementation of can_add 2018-02-09 08:57:41 +01:00
caacl.py LGTM: raise handle_not_found() 2018-01-09 07:53:28 +01:00
cert.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
certmap.py Load certificate files as binary data 2018-04-30 20:42:00 +02:00
certprofile.py certprofile: reject config with multiple profileIds 2018-04-19 08:57:53 -04:00
config.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
delegation.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
dns.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
dnsserver.py dnsserver.py: dnsserver-find no longer returns internal server error 2017-06-15 13:51:06 +02:00
dogtag.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
domainlevel.py Fix formatted translations in domainlevel plugin 2018-06-21 15:30:58 +02:00
group.py group: allow services as members of groups 2018-05-08 16:39:22 -04:00
hbac.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
hbacrule.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
hbacsvc.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
hbacsvcgroup.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
hbactest.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
host.py ipa host-add: do not raise exception when reverse record not added 2018-02-23 14:39:34 +01:00
hostgroup.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
idrange.py Fix translation of idrange_* commands description 2018-06-21 15:30:58 +02:00
idviews.py Idviews: fix objectclass violation on idview-add 2018-01-09 07:58:52 +01:00
internal.py Fix link to browser configuration guide on Login page 2018-07-09 18:27:05 +02:00
join.py Fix some untranslatable commands in Web UI API Browser 2018-06-21 18:42:05 +02:00
krbtpolicy.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
ldap2.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
location.py DNS Location: add list of roles and DNS servers to location-show 2016-06-17 18:05:03 +02:00
migration.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
misc.py Make env and plugins commands local again 2016-12-02 13:00:06 +01:00
netgroup.py LGTM: raise handle_not_found() 2018-01-09 07:53:28 +01:00
otp.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
otpconfig.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
otptoken.py use LDAP Whoami command when creating an OTP token 2018-03-22 11:33:17 +01:00
passwd.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
permission.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
ping.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
pkinit.py pkinit: don't fail when no pkinit servers found 2017-09-12 15:59:20 +02:00
privilege.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
pwpolicy.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
rabase.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
radiusproxy.py Radius proxy multiservers fix 2018-05-17 18:36:33 -04:00
realmdomains.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
role.py Reworked the renaming mechanism 2017-03-27 19:08:26 +02:00
schema.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
selfservice.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
selinuxusermap.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
server.py Query for server role IPA master 2018-07-06 13:26:43 +02:00
serverrole.py Delay enabling services until end of installer 2018-07-06 13:26:43 +02:00
serverroles.py Fix formatted translations of error messages in serverroles plugin 2018-06-21 15:30:58 +02:00
service.py group: allow services as members of groups 2018-05-08 16:39:22 -04:00
servicedelegation.py Reworked the renaming mechanism 2017-03-27 19:08:26 +02:00
session.py Fix some untranslatable commands in Web UI API Browser 2018-06-21 18:42:05 +02:00
stageuser.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
sudo.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
sudocmd.py sudocmd: fix unsupported assignment 2017-09-08 15:42:07 +02:00
sudocmdgroup.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
sudorule.py LGTM: raise handle_not_found() 2018-01-09 07:53:28 +01:00
topology.py Fix formatted translations of error messages in topology plugin 2018-06-21 15:30:58 +02:00
trust.py Fix formatted translations in trust plugin 2018-06-21 15:30:58 +02:00
user.py Allow user administrator to change user homedir 2018-05-10 10:05:22 +02:00
vault.py Fix translation of commands description in API Browser 2018-06-12 08:38:56 +02:00
virtual.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
whoami.py whoami.py: Type error when running tests 2017-07-07 14:44:42 +02:00
xmlserver.py Added new authentication method 2016-08-17 16:55:49 +02:00