[pve-devel] [PATCH pve-ha-manager 2/4] TestHardware: use more informative error message
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Dec 21 12:52:54 CET 2015
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/HA/Sim/TestHardware.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/HA/Sim/TestHardware.pm b/src/PVE/HA/Sim/TestHardware.pm
index 095551a..d666f7f 100644
--- a/src/PVE/HA/Sim/TestHardware.pm
+++ b/src/PVE/HA/Sim/TestHardware.pm
@@ -133,7 +133,8 @@ sub sim_hardware_cmd {
$self->write_hardware_status_nolock($cstatus);
} elsif ($cmd eq 'network') {
- die "sim_hardware_cmd: unknown action '$action'" if $action !~ m/^(on|off)$/;
+ die "sim_hardware_cmd: unknown network action '$action'"
+ if $action !~ m/^(on|off)$/;
$cstatus->{$node}->{network} = $action;
$self->write_hardware_status_nolock($cstatus);
--
2.1.4
More information about the pve-devel
mailing list