Skip to content

Commit

Permalink
ipatrust: Set valid choices for trust_type.
Browse files Browse the repository at this point in the history
Ensure only valid choices for trust_type ('ad')  are available for the
module parameter.
  • Loading branch information
rjeffman committed Apr 26, 2022
1 parent ce143ba commit 423a6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/modules/ipatrust.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def main():
state=dict(type="str", default="present",
choices=["present", "absent"]),
# present
trust_type=dict(type="str", default="ad", required=False),
trust_type=dict(type="str", default="ad", required=False,
choices=["ad"]),
admin=dict(type="str", default=None, required=False),
password=dict(type="str", default=None,
required=False, no_log=True),
Expand Down

0 comments on commit 423a6b0

Please sign in to comment.