[pve-devel] [PATCH manager 4/4] include also HA VMs if a vm list is explicit specified

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Mar 15 15:46:07 CET 2017


Else the user would not had specified them explicit

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/API2/Nodes.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index c85c9f5..9511264 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1261,7 +1261,10 @@ my $get_filtered_vmlist = sub {
 my $get_start_stop_list = sub {
     my ($nodename, $autostart, $vmfilter) = @_;
 
-    my $vmlist = &$get_filtered_vmlist($nodename, $vmfilter);
+    # do not skip HA vms on force or if a specific VMID set is wanted
+    my $include_ha_managed = defined($vmfilter) ? 1 : 0;
+
+    my $vmlist = &$get_filtered_vmlist($nodename, $vmfilter, undef, $include_ha_managed);
 
     my $resList = {};
     foreach my $vmid (keys %$vmlist) {
-- 
2.1.4





More information about the pve-devel mailing list