Skip to content

Commit

Permalink
[ignore] Set a few attributes to required=True.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmicol committed Jan 24, 2025
1 parent dff86ef commit 7081b27
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions plugins/modules/ndo_ntp_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
- The key's ID.
- The value must be between 1 and 65535.
type: int
required: true
aliases: [ key_id ]
key:
description:
Expand Down Expand Up @@ -84,6 +85,7 @@
description:
- The Hostname or IP address of the NTP provider.
type: str
required: true
minimum_poll_interval:
description:
- The Minimum Polling interval value.
Expand All @@ -102,12 +104,14 @@
description:
- The type of the management EPG.
type: str
required: true
choices: [ inb, oob ]
aliases: [ epg_type ]
management_epg:
description:
- The management EPG.
type: str
required: true
aliases: [ epg ]
preferred:
description:
Expand Down Expand Up @@ -273,7 +277,7 @@ def main():
type="list",
elements="dict",
options=dict(
id=dict(type="int", aliases=["key_id"]),
id=dict(type="int", required=True, aliases=["key_id"]),
key=dict(type="str", no_log=True),
authentication_type=dict(type="str", choices=["md5", "sha1"]),
trusted=dict(type="bool"),
Expand All @@ -284,11 +288,11 @@ def main():
type="list",
elements="dict",
options=dict(
host=dict(type="str"),
host=dict(type="str", required=True),
minimum_poll_interval=dict(type="int", aliases=["min_poll"]),
maximum_poll_interval=dict(type="int", aliases=["max_poll"]),
management_epg_type=dict(type="str", choices=["inb", "oob"], aliases=["epg_type"]),
management_epg=dict(type="str", aliases=["epg"]),
management_epg_type=dict(type="str", choices=["inb", "oob"], required=True, aliases=["epg_type"]),
management_epg=dict(type="str", required=True, aliases=["epg"]),
preferred=dict(type="bool"),
authentication_key_id=dict(type="int", aliases=["key_id"]),
),
Expand Down

0 comments on commit 7081b27

Please sign in to comment.