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 <berrange@redhat.com>
(cherry picked from commit 1cad5ebae6)
This commit is contained in:
Daniel P. Berrange
2012-11-30 18:43:40 +00:00
committed by Cole Robinson
parent 8a0bb98d1e
commit 68fb799b46

View File

@@ -504,7 +504,7 @@ cmdNodeSuspend(vshControl *ctl, const vshCmd *cmd)
return false;
}
if (duration <= 0) {
if (duration < 0) {
vshError(ctl, "%s", _("Invalid duration"));
return false;
}