Merge pull request #628 from rjeffman/pylint_update_version

pylint: Upgrade to version 2.10.2.
This commit is contained in:
Thomas Woerner
2021-09-01 18:54:28 +02:00
committed by GitHub
6 changed files with 10 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ else:
try:
from collections.abc import Mapping # noqa
except ImportError:
from collections import Mapping # noqa
from collections import Mapping # pylint: disable=deprecated-class
if six.PY3:
unicode = str

View File

@@ -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: