]> git.proxmox.com Git - pmg-api.git/commit
pmgqm: warn if not running on master
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 19 Mar 2020 13:02:26 +0000 (14:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Mar 2020 16:47:07 +0000 (17:47 +0100)
commit7a7e03e6871716a9aadd095c71049a6a258b433f
tree10b6561727f2dcff6f9de42cc9a2b557858b81a4
parent84f232633bb29ab65256f14999d2542d805604fe
pmgqm: warn if not running on master

pmgqm should exit when running on a non-master node (instead of e.g. sending
out spam report mails multiple times).
However this condition should not be an error - a warning printed should
suffice.

changing the die to warn + return in the calls for 'status' and 'send'
achieves this effect.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/CLI/pmgqm.pm