switch to 'ha-manager set'

ha-manager enabled/disabled will get removed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2016-11-18 17:42:17 +01:00 committed by Dietmar Maurer
parent 3a8deb551f
commit 2a7e2b82bb

View File

@ -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";