Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
6da61104
Commit
6da61104
authored
2 years ago
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
Fix issues raised by Flake8 version 5.0.3
parent
1d8deb8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/module_utils/ansible_freeipa_module.py
+2
-2
2 additions, 2 deletions
plugins/module_utils/ansible_freeipa_module.py
utils/get_test_modules.py
+1
-1
1 addition, 1 deletion
utils/get_test_modules.py
with
3 additions
and
3 deletions
plugins/module_utils/ansible_freeipa_module.py
+
2
−
2
View file @
6da61104
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
utils/get_test_modules.py
+
1
−
1
View file @
6da61104
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment