From a5d48ae19023893530849bfc51fff139ab4b1985 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 1 Jul 2021 15:59:18 +0200 Subject: [PATCH] sim: hardware: update & reformat comment for available commands The service addition and deletion, and also the artificial delay (useful to force continuation of the HW) commands where missing completely. Signed-off-by: Thomas Lamprecht --- src/PVE/HA/Sim/Hardware.pm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/PVE/HA/Sim/Hardware.pm b/src/PVE/HA/Sim/Hardware.pm index 121cd1b..ba731e5 100644 --- a/src/PVE/HA/Sim/Hardware.pm +++ b/src/PVE/HA/Sim/Hardware.pm @@ -532,18 +532,19 @@ sub get_cfs_state { return !defined($res) || $res; } -# simulate hardware commands -# power -# network -# cfs -# reboot -# shutdown -# restart-lrm -# service -# service -# service stop -# service lock/unlock [lockname] - +# simulate hardware commands, the following commands are available: +# power +# network +# delay +# cfs +# reboot +# shutdown +# restart-lrm +# service +# service +# service stop +# service lock/unlock [lockname] +# service sub sim_hardware_cmd { my ($self, $cmdstr, $logid) = @_; -- 2.39.2