Fix issues raised by Flake8 version 5.0.3

This commit is contained in:
Rafael Guterres Jeffman
2022-12-01 10:00:58 -03:00
parent 1d8deb8e2d
commit 6da6110432
2 changed files with 3 additions and 3 deletions

View File

@@ -1125,8 +1125,8 @@ class IPAAnsibleModule(AnsibleModule):
def ipa_get_domain(self):
"""Retrieve IPA API domain."""
if not hasattr(self, "__ipa_api_domain"):
setattr(self, "__ipa_api_domain", api_get_domain())
return getattr(self, "__ipa_api_domain")
setattr(self, "__ipa_api_domain", api_get_domain()) # noqa: B010
return getattr(self, "__ipa_api_domain") # noqa: B009
@staticmethod
def ipa_get_realm():