[pve-devel] [PATCH 11/14] convert migrate_set_downtime monitor command to qmp
Alexandre Derumier
aderumier at odiso.com
Mon Jun 25 10:02:55 CEST 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index cbe6d6c..4baae4a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2669,8 +2669,7 @@ sub vm_start {
my $migrate_downtime = $defaults->{migrate_downtime};
$migrate_downtime = $conf->{migrate_downtime} if defined($conf->{migrate_downtime});
if (defined($migrate_downtime)) {
- my $cmd = "migrate_set_downtime ${migrate_downtime}";
- eval { vm_monitor_command($vmid, $cmd); };
+ eval { vm_mon_cmd($vmid, "migrate_set_downtime",value => $migrate_downtime); };
}
vm_balloonset($vmid, $conf->{balloon}) if $conf->{balloon};
--
1.7.2.5
More information about the pve-devel
mailing list