This was previously gated to CLI only, but it causes a vzdump job
started with the newly introduced "Run Now" button to fail if it
includes VMIDs on other nodes.

Signed-off-by: Stefan Reiter <s.rei...@proxmox.com>
---
 PVE/API2/VZDump.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm
index c2a6fab4..d370467c 100644
--- a/PVE/API2/VZDump.pm
+++ b/PVE/API2/VZDump.pm
@@ -83,7 +83,7 @@ __PACKAGE__->register_method ({
 
        my $skiplist = [];
        if (!$param->{all}) {
-           if (!$param->{node}) {
+           if (!$param->{node} || $param->{node} eq $nodename) {
                my $vmlist = PVE::Cluster::get_vmlist();
                my @localvmids = ();
                foreach my $vmid (@vmids) {
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to