mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
committed by
Cole Robinson
parent
8a0bb98d1e
commit
68fb799b46
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user