From 2ec2dac298ac70297e956cc486788fa28f04b27a Mon Sep 17 00:00:00 2001 From: Paolo Date: Fri, 8 Apr 2022 11:21:52 +0200 Subject: [PATCH] Update zabbix_maintenance.py (#665) Change to int cast as discussed here https://github.com/ansible-collections/community.zabbix/issues/637 --- plugins/modules/zabbix_maintenance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/zabbix_maintenance.py b/plugins/modules/zabbix_maintenance.py index 757e9f22c..6cd460cb3 100644 --- a/plugins/modules/zabbix_maintenance.py +++ b/plugins/modules/zabbix_maintenance.py @@ -383,7 +383,7 @@ def main(): msg="At least one host_name or host_group must be defined for each created maintenance.") now = datetime.datetime.now().replace(second=0) - start_time = time.mktime(now.timetuple()) + start_time = int(time.mktime(now.timetuple())) period = 60 * int(minutes) # N * 60 seconds if host_groups: