From 27f8534cbf84044f8074c2778e877e7d09f23ccd Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 9 Sep 2016 15:44:03 +0200 Subject: [PATCH] + Fix command for root user --- storage/hp/storeonce/ssh/mode/components/hardware.pm | 2 +- storage/hp/storeonce/ssh/mode/components/serviceset.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/hp/storeonce/ssh/mode/components/hardware.pm b/storage/hp/storeonce/ssh/mode/components/hardware.pm index 4c86dd885..904d1ee0b 100644 --- a/storage/hp/storeonce/ssh/mode/components/hardware.pm +++ b/storage/hp/storeonce/ssh/mode/components/hardware.pm @@ -65,7 +65,7 @@ sub check { $self->{components}->{hardware} = {name => 'hardwares', total => 0, skip => 0}; return if ($self->check_filter(section => 'hardware')); - return if ($self->{result} !~ />\s*hardware show status details(.*?)\n>/msi); + return if ($self->{result} !~ /[>#]\s*hardware show status details(.*?)\n[>#]/msi); my $content = $1; while ($content =~ /^(\S+[^\n]*?)\n\s+(.*?)\n\s*?\n/msgi) { diff --git a/storage/hp/storeonce/ssh/mode/components/serviceset.pm b/storage/hp/storeonce/ssh/mode/components/serviceset.pm index a6d44aac1..d66455694 100644 --- a/storage/hp/storeonce/ssh/mode/components/serviceset.pm +++ b/storage/hp/storeonce/ssh/mode/components/serviceset.pm @@ -56,7 +56,7 @@ sub check { $self->{components}->{serviceset} = {name => 'service sets', total => 0, skip => 0}; return if ($self->check_filter(section => 'serviceset')); - return if ($self->{result} !~ />\s*serviceset show status(.*?)\n>/msi); + return if ($self->{result} !~ /[>#]\s*serviceset show status(.*?)\n[>#]/msi); my $content = $1; while ($content =~ /^Service Set (\d+).*?\n(.*?)\n\s*?\n/msgi) {