]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/Env/PVE2.pm
exec_resource_agent: return valid exit code instead of die's
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Oct 2015 12:04:25 +0000 (14:04 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Oct 2015 07:07:00 +0000 (08:07 +0100)
commit85316fd08b096a383bfebd34aa01a1e99374831c
tree631e78fe985e894efb0fc809a39ac93cf63f5ce9
parenta89ff9191ce2f5fca736f79065c1407e26e48224
exec_resource_agent: return valid exit code instead of die's

Switch from die's to logging and return the respective exit codes.
This adds the possibility to handle (i.e.: fix) some errors outside
of the forked exec_resource_agent worker.

This does not changes behaviour for now, as the die returned an 255
exit code. We didn't checked on that exit code explicitly and so we
are safe to use the new exit codes, it results in the same behaviour
for the other code (most important the CRM Manager class).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Env/PVE2.pm