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>
This commit is contained in:
Daniel P. Berrange 2012-11-30 18:43:40 +00:00
parent cef78ed84a
commit 1cad5ebae6

View File

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