From e9eb19a7f21e2b2a46655c3372fdf87e9ca90540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sun, 28 Sep 2014 20:49:05 +0200 Subject: [PATCH] zabbix_maintenance: set state to be present by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Moser --- lib/ansible/modules/extras/monitoring/zabbix_maintenance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py b/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py index e27091e0739..559f9e0e55a 100644 --- a/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py +++ b/lib/ansible/modules/extras/monitoring/zabbix_maintenance.py @@ -33,8 +33,8 @@ options: state: description: - Create or remove a maintenance window. - required: true - default: null + required: false + default: present choices: [ "present", "absent" ] server_url: description: @@ -267,7 +267,7 @@ def get_host_ids(zbx, host_names): def main(): module = AnsibleModule( argument_spec=dict( - state=dict(required=True, default=None, choices=['present', 'absent']), + state=dict(required=False, default='present', choices=['present', 'absent']), server_url=dict(required=True, default=None, aliases=['url']), host_names=dict(type='list', required=False, default=None, aliases=['host_name']), minutes=dict(type='int', required=False, default=10),