mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
pylint: Upgrade to version 2.10.2.
This PR sets pylint to version 2.10.2 in all linter actions, and fixes code in plugins so that this version new checks are either satisfied or ignored if needed.
This commit is contained in:
@@ -78,15 +78,14 @@ class AutomountLocation(FreeIPABaseModule):
|
||||
ipa_param_mapping = {}
|
||||
|
||||
def get_location(self, location):
|
||||
response = dict()
|
||||
try:
|
||||
response = self.api_command("automountlocation_show",
|
||||
location,
|
||||
{})
|
||||
except ipalib_errors.NotFound:
|
||||
pass
|
||||
|
||||
return response.get("result", None)
|
||||
return None
|
||||
else:
|
||||
return response.get("result", None)
|
||||
|
||||
def check_ipa_params(self):
|
||||
if len(self.ipa_params.name) == 0:
|
||||
|
||||
Reference in New Issue
Block a user