+ Fix command for root user
This commit is contained in:
parent
916a7eefbd
commit
27f8534cbf
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue