Skip to content
Snippets Groups Projects
Commit 6da61104 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Fix issues raised by Flake8 version 5.0.3

parent 1d8deb8e
Branches
Tags
No related merge requests found
...@@ -1125,8 +1125,8 @@ class IPAAnsibleModule(AnsibleModule): ...@@ -1125,8 +1125,8 @@ class IPAAnsibleModule(AnsibleModule):
def ipa_get_domain(self): def ipa_get_domain(self):
"""Retrieve IPA API domain.""" """Retrieve IPA API domain."""
if not hasattr(self, "__ipa_api_domain"): if not hasattr(self, "__ipa_api_domain"):
setattr(self, "__ipa_api_domain", api_get_domain()) setattr(self, "__ipa_api_domain", api_get_domain()) # noqa: B010
return getattr(self, "__ipa_api_domain") return getattr(self, "__ipa_api_domain") # noqa: B009
@staticmethod @staticmethod
def ipa_get_realm(): def ipa_get_realm():
......
...@@ -84,7 +84,7 @@ def get_plugins_from_playbook(playbook): ...@@ -84,7 +84,7 @@ def get_plugins_from_playbook(playbook):
def import_mock(name, *args): def import_mock(name, *args):
"""Intercept 'import' calls and store module name.""" """Intercept 'import' calls and store module name."""
if not hasattr(import_mock, "call_list"): if not hasattr(import_mock, "call_list"):
setattr(import_mock, "call_list", set()) setattr(import_mock, "call_list", set()) # noqa: B010
import_mock.call_list.add(name) # pylint: disable=no-member import_mock.call_list.add(name) # pylint: disable=no-member
try: try:
# print("NAME:", name) # print("NAME:", name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment