Skip to content

Commit

Permalink
Update zabbix_maintenance.py (#665)
Browse files Browse the repository at this point in the history
Change to int cast as discussed here #637
  • Loading branch information
polcape authored Apr 8, 2022
1 parent 37239cb commit 2ec2dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/zabbix_maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ec2dac

Please sign in to comment.