Skip to content

Commit 5abe6f5

Browse files
authored
Add missing lowDiskSpace parameter to cp_gaia_snmp_pre_defined_traps module (#78)
The lowDiskSpace trap parameter was not included in the module's argument specification, causing Ansible playbooks to fail when attempting to configure this trap. This fix adds the missing parameter to both the documentation and fields dictionary.
1 parent f00d72e commit 5abe6f5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

plugins/modules/cp_gaia_snmp_pre_defined_traps.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@
105105
description: Enables/Disables the linkUpLinkDown Trap.
106106
required: False
107107
type: bool
108+
lowDiskSpace:
109+
description: lowDiskSpace Trap.
110+
required: False
111+
type: dict
112+
suboptions:
113+
enabled:
114+
description: Enables/Disables the lowDiskSpace Trap.
115+
required: False
116+
type: bool
108117
clusterXLFailover:
109118
description: clusterXLFailover Trap.
110119
required: False
@@ -244,6 +253,7 @@ def main():
244253
fanFailure=dict(type="dict", options=dict(enabled=dict(type="bool"))),
245254
highVoltage=dict(type="dict", options=dict(enabled=dict(type="bool"))),
246255
linkUpLinkDown=dict(type="dict", options=dict(enabled=dict(type="bool"))),
256+
lowDiskSpace=dict(type="dict", options=dict(enabled=dict(type="bool"))),
247257
clusterXLFailover=dict(type="dict", options=dict(enabled=dict(type="bool"))),
248258
lowVoltage=dict(type="dict", options=dict(enabled=dict(type="bool"))),
249259
overTemperature=dict(type="dict", options=dict(enabled=dict(type="bool"))),

0 commit comments

Comments
 (0)