[pve-devel] [PATCH qemu-server] switch to 'ha-manager set'

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Nov 18 17:42:17 CET 2016


ha-manager enabled/disabled will get removed

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

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 34a5d5d..7376cd7 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1701,7 +1701,7 @@ __PACKAGE__->register_method({
 
 		my $service = "vm:$vmid";
 
-		my $cmd = ['ha-manager', 'enable', $service];
+		my $cmd = ['ha-manager', 'set', $service, '--state', 'started'];
 
 		print "Executing HA start for VM $vmid\n";
 
@@ -1798,7 +1798,7 @@ __PACKAGE__->register_method({
 
 		my $service = "vm:$vmid";
 
-		my $cmd = ['ha-manager', 'disable', $service];
+		my $cmd = ['ha-manager', 'set', $service, '--state', 'disabled'];
 
 		print "Executing HA stop for VM $vmid\n";
 
-- 
2.1.4





More information about the pve-devel mailing list