Skip to content

Commit

Permalink
fixup! ipapwpolicy: Use modules.params_get_type
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Dec 12, 2023
1 parent 55ce8f9 commit 39cbf96
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions plugins/modules/ipapwpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,33 +295,33 @@ def main():

# present
maxlife = ansible_module.params_get_with_type(
"maxlife", int, allow_empty_string=True)
"maxlife", int, allow_empty=True)
minlife = ansible_module.params_get_with_type(
"minlife", int, allow_empty_string=True)
"minlife", int, allow_empty=True)
history = ansible_module.params_get_with_type(
"history", int, allow_empty_string=True)
"history", int, allow_empty=True)
minclasses = ansible_module.params_get_with_type(
"minclasses", int, allow_empty_string=True)
"minclasses", int, allow_empty=True)
minlength = ansible_module.params_get_with_type(
"minlength", int, allow_empty_string=True)
"minlength", int, allow_empty=True)
priority = ansible_module.params_get_with_type(
"priority", int, allow_empty_string=True)
"priority", int, allow_empty=True)
maxfail = ansible_module.params_get_with_type(
"maxfail", int, allow_empty_string=True)
"maxfail", int, allow_empty=True)
failinterval = ansible_module.params_get_with_type(
"failinterval", int, allow_empty_string=True)
"failinterval", int, allow_empty=True)
lockouttime = ansible_module.params_get_with_type(
"lockouttime", int, allow_empty_string=True)
"lockouttime", int, allow_empty=True)
maxrepeat = ansible_module.params_get_with_type(
"maxrepeat", int, allow_empty_string=True)
"maxrepeat", int, allow_empty=True)
maxsequence = ansible_module.params_get_with_type(
"maxsequence", int, allow_empty_string=True)
"maxsequence", int, allow_empty=True)
dictcheck = ansible_module.params_get_with_type(
"dictcheck", bool, allow_empty_string=True)
"dictcheck", bool, allow_empty=True)
usercheck = ansible_module.params_get_with_type(
"usercheck", bool, allow_empty_string=True)
"usercheck", bool, allow_empty=True)
gracelimit = ansible_module.params_get_with_type(
"gracelimit", int, allow_empty_string=True)
"gracelimit", int, allow_empty=True)

# state
state = ansible_module.params_get("state")
Expand Down

0 comments on commit 39cbf96

Please sign in to comment.