Skip to content

Commit f030c4a

Browse files
authored
From the ports parameter in the DCNM Network Class, remove "required" constraint and add default value (#427)
1 parent 894038c commit f030c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/modules/dcnm_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@ def validate_input(self):
26052605
)
26062606
att_spec = dict(
26072607
ip_address=dict(required=True, type="str"),
2608-
ports=dict(required=True, type="list", default=[]),
2608+
ports=dict(type="list", default=[]),
26092609
deploy=dict(type="bool", default=True),
26102610
)
26112611

@@ -2671,7 +2671,7 @@ def validate_input(self):
26712671
)
26722672
att_spec = dict(
26732673
ip_address=dict(required=True, type="str"),
2674-
ports=dict(required=True, type="list"),
2674+
ports=dict(type="list", default=[]),
26752675
deploy=dict(type="bool", default=True),
26762676
tor_ports=dict(required=False, type="list", elements="dict"),
26772677
)

0 commit comments

Comments
 (0)