+ Fix command for root user

This commit is contained in:
garnier-quentin 2016-09-09 15:44:03 +02:00
parent 916a7eefbd
commit 27f8534cbf
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {