mirror of
https://git.proxmox.com/git/pve-client
synced 2025-10-05 04:38:50 +00:00
Handle errors on tasks correctly with a die,
so we get the correct exit code on errors. Signed-off-by: René Jochum <r.jochum@proxmox.com>
This commit is contained in:
parent
969b8624f3
commit
20e7131b2d
@ -355,6 +355,10 @@ sub poll_task {
|
|||||||
sleep(2);
|
sleep(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($task_status->{exitstatus} ne "OK") {
|
||||||
|
die $task_status->{exitstatus};
|
||||||
|
}
|
||||||
|
|
||||||
return $task_status->{exitstatus};
|
return $task_status->{exitstatus};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user