]> git.proxmox.com Git - pve-manager.git/commit - PVE/VZDump.pm
only use plugin after truthiness check
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 22 Oct 2020 10:30:12 +0000 (12:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Oct 2020 14:29:26 +0000 (16:29 +0200)
commitd51f5a1e8d0771c4b009c1b2c827ee259e9b87f6
treebf99b0b5874f902c89f28e6a52eaac6ef6d427ba
parent83b219146428cf73a3ced63272462de16da9e4bd
only use plugin after truthiness check

Commit 1a87db9e566599d02e62d9daf4a248ef54e00469 introduced
a usage of plugin before the truthiness check for plugin.

At the moment it might not be possible to trigger this anymore,
because of the guest inclusion rework that happened later on.
But to make tasks for inexistent guest IDs visibly fail again,
this check will be necessary. Also, to get the error message in
the mail, it needs to fail inside the eval block.

Thus, keep the check in the eval block and move the block of code
using the plugin to below the check.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm