Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle data type or empty string in module_utils #1143

Merged
merged 5 commits into from
Dec 19, 2023

Commits on Dec 8, 2023

  1. Rename parameter 'allow_empty_string' to 'allow_empty_list_item'

    The parameter 'allow_empty_string' in 'module_params_get' is used to
    allow an item in a list to be an empty string. The problem is that the
    naming is misleading, as it is checking a list item rather than a
    string.
    
    This patch rename the parameter to 'allow_empty_list_item' so that it
    more clearly refers to list itens instead of standalone strings, and do
    not collide with future parameters that may test for empty strings which
    are not part of lists.
    rjeffman committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    f4c9e28 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. ansible_freeipa_module: Ensure data type when retrieving parameter

    Some parameters, in modules, have a specific data type, but allow the
    use of an empty string to clear the parameter.
    
    By providing a method to retrieve the parameter with the correct data
    type, or optionally an empty string, allows for consistency of parameter
    handling between different modules.
    rjeffman committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    e55a41c View commit details
    Browse the repository at this point in the history
  2. ipapwpolicy: Use modules.params_get_type

    Use the commom parameter type handling method for parameters that accept
    a value or an empty string.
    rjeffman committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    92d579b View commit details
    Browse the repository at this point in the history
  3. idoverideuser: Use module.params_get_type

    Use the commom parameter type handling method for parameters that accept
    a value or an empty string.
    rjeffman committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    bc694b7 View commit details
    Browse the repository at this point in the history
  4. idoveridegroup: Use module.params_get_type

    Use the commom parameter type handling method for parameters that accept
    a value or an empty string.
    rjeffman committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    34973c0 View commit details
    Browse the repository at this point in the history