[pve-devel] [PATCH v3 manager 2/3] fix #1594: allow skipping VMIDs on other nodes from API
Stefan Reiter
s.reiter at proxmox.com
Mon Aug 12 14:50:07 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 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
More information about the pve-devel
mailing list