mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 22:03:18 +00:00
Fix pylint warnings for name redefinition.
This commit is contained in:
@@ -399,11 +399,11 @@ def main():
|
||||
("ipasearchrecordslimit", -1, 2147483647),
|
||||
("ipapwdexpadvnotify", 0, 2147483647),
|
||||
]
|
||||
for arg, min, max in args_with_limits:
|
||||
if arg in params and (params[arg] > max or params[arg] < min):
|
||||
for arg, minimum, maximum in args_with_limits:
|
||||
if arg in params and (params[arg] > maximum or params[arg] < minimum):
|
||||
ansible_module.fail_json(
|
||||
msg="Argument '%s' must be between %d and %d."
|
||||
% (arg, min, max))
|
||||
% (arg, minimum, maximum))
|
||||
|
||||
changed = False
|
||||
exit_args = {}
|
||||
|
||||
@@ -386,8 +386,8 @@ def main():
|
||||
**exit_args)
|
||||
|
||||
# Execute commands
|
||||
for name, command, args in commands:
|
||||
api_command(ansible_module, command, name, args)
|
||||
for _name, command, args in commands:
|
||||
api_command(ansible_module, command, _name, args)
|
||||
changed = True
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user