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

[flake8-bugbear] Fix unused loop variable.

Running flake8 with bugbear enable found an extra for-loop that is not
needed. The for-loop was removed, fixing bubear's warning.
parent eba38e30
No related branches found
No related tags found
No related merge requests found
...@@ -1375,8 +1375,7 @@ def define_commands_for_present_state(module, zone_name, entry, res_find): ...@@ -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. # remove record from args, as it will not be used again.
del args[record] del args[record]
else: else:
for f in part_fields: _args = {k: args[k] for k in part_fields if k in args}
_args = {k: args[k] for k in part_fields}
_args['idnsname'] = name _args['idnsname'] = name
_commands.append([zone_name, 'dnsrecord_add', _args]) _commands.append([zone_name, 'dnsrecord_add', _args])
# clean used fields from args # clean used fields from args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment