Skip to content

Commit 2c2ed57

Browse files
committed
[ignore] Set a few attributes to required=True.
1 parent dff86ef commit 2c2ed57

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

plugins/modules/ndo_ntp_policy.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
type: str
4646
ntp_keys:
4747
description:
48-
- The List of NTP client authentication keys.
48+
- The list of NTP client authentication keys.
4949
- Providing a new list of O(ntp_keys) will completely replace an existing one from the NTP Policy.
5050
- Providing an empty list will remove the O(ntp_keys=[]) from the NTP Policy.
5151
type: list
@@ -56,6 +56,7 @@
5656
- The key's ID.
5757
- The value must be between 1 and 65535.
5858
type: int
59+
required: true
5960
aliases: [ key_id ]
6061
key:
6162
description:
@@ -64,7 +65,7 @@
6465
type: str
6566
authentication_type:
6667
description:
67-
- the type of authentication.
68+
- The type of authentication.
6869
- The default value is O(ntp_keys.authentication_type=md5).
6970
type: str
7071
choices: [ md5, sha1 ]
@@ -82,18 +83,19 @@
8283
suboptions:
8384
host:
8485
description:
85-
- The Hostname or IP address of the NTP provider.
86+
- The hostname or IP address of the NTP provider.
8687
type: str
88+
required: true
8789
minimum_poll_interval:
8890
description:
89-
- The Minimum Polling interval value.
91+
- The minimum polling interval value.
9092
- The default value is O(ntp_providers.minimum_poll_interval=4).
9193
- The value must be between 4 and 16.
9294
type: int
9395
aliases: [ min_poll ]
9496
maximum_poll_interval:
9597
description:
96-
- The Maximum Polling interval value.
98+
- The maximum polling interval value.
9799
- The default value is O(ntp_providers.maximum_poll_interval=6).
98100
- The value must be between 4 and 16.
99101
type: int
@@ -102,12 +104,14 @@
102104
description:
103105
- The type of the management EPG.
104106
type: str
107+
required: true
105108
choices: [ inb, oob ]
106109
aliases: [ epg_type ]
107110
management_epg:
108111
description:
109112
- The management EPG.
110113
type: str
114+
required: true
111115
aliases: [ epg ]
112116
preferred:
113117
description:
@@ -273,7 +277,7 @@ def main():
273277
type="list",
274278
elements="dict",
275279
options=dict(
276-
id=dict(type="int", aliases=["key_id"]),
280+
id=dict(type="int", required=True, aliases=["key_id"]),
277281
key=dict(type="str", no_log=True),
278282
authentication_type=dict(type="str", choices=["md5", "sha1"]),
279283
trusted=dict(type="bool"),
@@ -284,11 +288,11 @@ def main():
284288
type="list",
285289
elements="dict",
286290
options=dict(
287-
host=dict(type="str"),
291+
host=dict(type="str", required=True),
288292
minimum_poll_interval=dict(type="int", aliases=["min_poll"]),
289293
maximum_poll_interval=dict(type="int", aliases=["max_poll"]),
290-
management_epg_type=dict(type="str", choices=["inb", "oob"], aliases=["epg_type"]),
291-
management_epg=dict(type="str", aliases=["epg"]),
294+
management_epg_type=dict(type="str", choices=["inb", "oob"], required=True, aliases=["epg_type"]),
295+
management_epg=dict(type="str", required=True, aliases=["epg"]),
292296
preferred=dict(type="bool"),
293297
authentication_key_id=dict(type="int", aliases=["key_id"]),
294298
),

0 commit comments

Comments
 (0)