From 73583abe8e4232d1bab1dba98c1de0367657b847 Mon Sep 17 00:00:00 2001 From: Lucie Dubrunfaut Date: Thu, 12 Dec 2024 16:04:16 +0100 Subject: [PATCH] Enhance running handling --- src/storage/emc/datadomain/snmp/mode/cleaning.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/emc/datadomain/snmp/mode/cleaning.pm b/src/storage/emc/datadomain/snmp/mode/cleaning.pm index 69085b9f8d..3eb73e7633 100644 --- a/src/storage/emc/datadomain/snmp/mode/cleaning.pm +++ b/src/storage/emc/datadomain/snmp/mode/cleaning.pm @@ -116,8 +116,8 @@ sub manage_selection { if ($self->{global}->{lastExecSeconds} == -1 || $self->{global}->{lastExecSeconds} > $lastExecSeconds) { $self->{global}->{lastExecSeconds} = $lastExecSeconds; } - }elsif($snmp_result->{$oid} =~ /Cleaning: phase (\d+) of (\d+) \(copy\)/){ - $self->{global}->{lastExecHuman} = "running (phase $1 of $2 (copy))"; + }elsif($snmp_result->{$oid} =~ /Cleaning: phase (\d+) of (\d+) \(([^)]+)\)/) { + $self->{global}->{lastExecHuman} = "running (phase $1 of $2 : $3)"; $self->{global}->{lastExecSeconds} = 0; } }