]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #1594: allow skipping VMIDs on other nodes from API
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 12 Aug 2019 12:50:07 +0000 (14:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Aug 2019 11:36:08 +0000 (13:36 +0200)
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.reiter@proxmox.com>
PVE/API2/VZDump.pm

index c2a6fab466d5035694ebf73b5a4d46f05d9058c0..d370467c8b82d34980bbc6a52963db9264554455 100644 (file)
@@ -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) {