-
- Downloads
pylint: Fix warning 'unnecessary "else" after "return"'
Recent pylint versions warn against the use of an 'else' in a 'try-except' block if using a 'return' on the 'except' part is is the idom used by ansible-freeipa when retrieving IPA data objects. This change removes the usage of the 'else:' in such cases, and modify the templates so that new modules do not have the same issue in the future.
Showing
- plugins/modules/ipaautomountkey.py 1 addition, 2 deletionsplugins/modules/ipaautomountkey.py
- plugins/modules/ipaautomountlocation.py 1 addition, 2 deletionsplugins/modules/ipaautomountlocation.py
- plugins/modules/ipaautomountmap.py 1 addition, 2 deletionsplugins/modules/ipaautomountmap.py
- plugins/modules/ipaconfig.py 1 addition, 2 deletionsplugins/modules/ipaconfig.py
- plugins/modules/ipadelegation.py 1 addition, 2 deletionsplugins/modules/ipadelegation.py
- plugins/modules/ipaidrange.py 1 addition, 2 deletionsplugins/modules/ipaidrange.py
- plugins/modules/ipaidview.py 1 addition, 2 deletionsplugins/modules/ipaidview.py
- plugins/modules/ipalocation.py 1 addition, 2 deletionsplugins/modules/ipalocation.py
- plugins/modules/ipapermission.py 1 addition, 2 deletionsplugins/modules/ipapermission.py
- plugins/modules/ipaprivilege.py 1 addition, 2 deletionsplugins/modules/ipaprivilege.py
- plugins/modules/iparole.py 1 addition, 2 deletionsplugins/modules/iparole.py
- plugins/modules/ipaselfservice.py 1 addition, 2 deletionsplugins/modules/ipaselfservice.py
- plugins/modules/ipaserver.py 2 additions, 4 deletionsplugins/modules/ipaserver.py
- plugins/modules/ipaservicedelegationrule.py 1 addition, 2 deletionsplugins/modules/ipaservicedelegationrule.py
- plugins/modules/ipaservicedelegationtarget.py 1 addition, 2 deletionsplugins/modules/ipaservicedelegationtarget.py
- plugins/modules/ipasudocmdgroup.py 1 addition, 2 deletionsplugins/modules/ipasudocmdgroup.py
- utils/get_test_modules.py 1 addition, 2 deletionsutils/get_test_modules.py
- utils/templates/ipamodule+member.py.in 1 addition, 2 deletionsutils/templates/ipamodule+member.py.in
- utils/templates/ipamodule.py.in 1 addition, 2 deletionsutils/templates/ipamodule.py.in
Loading
Please register or sign in to comment