]> git.proxmox.com Git - pve-manager.git/commit
schedule-analyze: fix schedules with limited runs
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 3 May 2022 14:10:25 +0000 (16:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 May 2022 05:10:13 +0000 (07:10 +0200)
commite5f94bc198fb9532168a13339be2bacc65365a3d
tree5c1f65e9a080e3ddcaf97a6d5cb63409d304703b
parent771d35e70e551593b38aa203ec0dc103d9c84224
schedule-analyze: fix schedules with limited runs

When a schedule only has a limited amount of runs it can happen
(e.g. 2022-10-01 8:00/30), $next will be undef after the last run.
Exit early in that case.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Cluster/Jobs.pm