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
5634f94e
Unverified
Commit
5634f94e
authored
4 years ago
by
Thomas Woerner
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #471 from rjeffman/tools_flake8_bugbear
Tools flake8 bugbear
parents
eba38e30
97b06ff6
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/lint.yml
+1
-1
1 addition, 1 deletion
.github/workflows/lint.yml
plugins/modules/ipadnsrecord.py
+3
-4
3 additions, 4 deletions
plugins/modules/ipadnsrecord.py
requirements-dev.txt
+1
-0
1 addition, 0 deletions
requirements-dev.txt
tests/utils.py
+1
-1
1 addition, 1 deletion
tests/utils.py
with
6 additions
and
6 deletions
.github/workflows/lint.yml
+
1
−
1
View file @
5634f94e
...
...
@@ -30,4 +30,4 @@ jobs:
uses
:
ibiqlik/action-yamllint@v1
-
name
:
Run Python linters
uses
:
rjeffman/python-lint-action@
master
uses
:
rjeffman/python-lint-action@
v2
This diff is collapsed.
Click to expand it.
plugins/modules/ipadnsrecord.py
+
3
−
4
View file @
5634f94e
...
...
@@ -1375,8 +1375,7 @@ def define_commands_for_present_state(module, zone_name, entry, res_find):
# remove record from args, as it will not be used again.
del
args
[
record
]
else
:
for
f
in
part_fields
:
_args
=
{
k
:
args
[
k
]
for
k
in
part_fields
}
_args
=
{
k
:
args
[
k
]
for
k
in
part_fields
if
k
in
args
}
_args
[
'
idnsname
'
]
=
name
_commands
.
append
([
zone_name
,
'
dnsrecord_add
'
,
_args
])
# clean used fields from args
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.txt
+
1
−
0
View file @
5634f94e
-r requirements-tests.txt
ipdb
pre-commit
flake8-bugbear
This diff is collapsed.
Click to expand it.
tests/utils.py
+
1
−
1
View file @
5634f94e
...
...
@@ -169,7 +169,7 @@ def list_test_yaml(dir_path):
`test_` and the extension is `.yml`.
"""
yamls
=
[]
for
root
,
dirs
,
files
in
os
.
walk
(
dir_path
):
for
root
,
_
dirs
,
files
in
os
.
walk
(
dir_path
):
for
yaml_name
in
files
:
if
yaml_name
.
startswith
(
"
test_
"
)
and
yaml_name
.
endswith
(
"
.yml
"
):
test_yaml_path
=
os
.
path
.
join
(
root
,
yaml_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