mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
fix in plugin for parse valors
This commit is contained in:
parent
964b26ca2d
commit
62c0d503e1
@ -130,7 +130,7 @@ my $output = `$wmi_command 2>/dev/null`;
|
||||
|
||||
my @data = split("\n", $output);
|
||||
|
||||
if ($data[0] ne 'CLASS: ' . $config->{'wmiClass'}){
|
||||
if (index($data[0], 'CLASS: ' . $config->{'wmiClass'}) != 0) {
|
||||
print $output;
|
||||
exit 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user