[pve-devel] [PATCH v2 manager 2/3] fix #1594: allow skipping VMIDs on other nodes from API

Stefan Reiter s.reiter at proxmox.com
Mon Aug 5 16:58:06 CEST 2019


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 at 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 8e409674..433e3967 100644
--- a/PVE/API2/VZDump.pm
+++ b/PVE/API2/VZDump.pm
@@ -86,7 +86,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




More information about the pve-devel mailing list