From 39cbf96b5bbdd74962e4c4167eb939636ff0a7b8 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Tue, 12 Dec 2023 12:25:41 -0300 Subject: [PATCH] fixup! ipapwpolicy: Use modules.params_get_type --- plugins/modules/ipapwpolicy.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/plugins/modules/ipapwpolicy.py b/plugins/modules/ipapwpolicy.py index f24a05282..4d54732f3 100644 --- a/plugins/modules/ipapwpolicy.py +++ b/plugins/modules/ipapwpolicy.py @@ -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")