mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03: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>
This commit is contained in:
parent
cef78ed84a
commit
1cad5ebae6
@ -537,7 +537,7 @@ cmdNodeSuspend(vshControl *ctl, const vshCmd *cmd)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (duration <= 0) {
|
if (duration < 0) {
|
||||||
vshError(ctl, "%s", _("Invalid duration"));
|
vshError(ctl, "%s", _("Invalid duration"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user