[pve-devel] [PATCH container] switch to 'ha-manager set'
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Nov 18 17:42:16 CET 2016
ha-manager enabled/disabled will get removed
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/API2/LXC/Status.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index 83a23f5..eab51cf 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -144,7 +144,7 @@ __PACKAGE__->register_method({
my $service = "ct:$vmid";
- my $cmd = ['ha-manager', 'enable', $service];
+ my $cmd = ['ha-manager', 'set', $service, '--state', 'started'];
print "Executing HA start for CT $vmid\n";
@@ -237,7 +237,7 @@ __PACKAGE__->register_method({
my $service = "ct:$vmid";
- my $cmd = ['ha-manager', 'disable', $service];
+ my $cmd = ['ha-manager', 'set', $service, '--state', 'disabled'];
print "Executing HA stop for CT $vmid\n";
--
2.1.4
More information about the pve-devel
mailing list