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

idrange: Fix list of invalid parameters for 'state:absent'.

As an idrange has no members, when using `state: absent`, all
parameters but 'name' and 'state' are invalid. The list of invalid
parameters when 'state: absent', have been fixed to include some
missing parameters.
parent 65b10644
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,10 @@ def main():
if state == "absent":
if len(names) < 1:
ansible_module.fail_json(msg="No name given.")
invalid = ["base_id", "range_size", "idrange_type", "dom_sid"]
invalid = [
"base_id", "range_size", "idrange_type", "dom_sid", "dom_name",
"rid_base", "secondary_rid_base", "auto_private_groups"
]
ansible_module.params_fail_used_invalid(invalid, state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment