From 5f0060ec418234d1fcf3f9b7de35d0445b546b8e Mon Sep 17 00:00:00 2001 From: GGabriele Date: Wed, 14 Sep 2016 17:49:02 +0200 Subject: [PATCH] Fixing argument_spec --- lib/ansible/modules/network/nxos/nxos_snmp_traps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py index 47cf312b5c..98c779fe3e 100644 --- a/lib/ansible/modules/network/nxos/nxos_snmp_traps.py +++ b/lib/ansible/modules/network/nxos/nxos_snmp_traps.py @@ -452,7 +452,7 @@ def get_trap_commands(group, state, existing, module): def main(): argument_spec = dict( - state=dict(choices=['enabled', 'disabled'], required=True), + state=dict(choices=['enabled', 'disabled'], default='enabled'), group=dict(choices=['aaa', 'bridge', 'callhome', 'cfs', 'config', 'entity', 'feature-control', 'hsrp', 'license', 'link', 'lldp', 'ospf', 'pim', 'rf',