From 1cad5ebae6074318ca22789b1e38d4594d54f883 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 30 Nov 2012 18:43:40 +0000 Subject: [PATCH] Allow duration=0 for virsh nodesuspend The virNodeSuspend API allows for a duration of 0, to mean no timed wakup. virsh needlessly forbids this though Signed-off-by: Daniel P. Berrange --- tools/virsh-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index 3701f56674..3d13e016ed 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -537,7 +537,7 @@ cmdNodeSuspend(vshControl *ctl, const vshCmd *cmd) return false; } - if (duration <= 0) { + if (duration < 0) { vshError(ctl, "%s", _("Invalid duration")); return false; }