fix in plugin for parse valors

This commit is contained in:
alejandro 2023-06-27 18:06:37 +02:00
parent 964b26ca2d
commit 62c0d503e1
1 changed files with 3 additions and 3 deletions

View File

@ -130,9 +130,9 @@ my $output = `$wmi_command 2>/dev/null`;
my @data = split("\n", $output);
if ($data[0] ne 'CLASS: ' . $config->{'wmiClass'}){
print $output;
exit 1;
if (index($data[0], 'CLASS: ' . $config->{'wmiClass'}) != 0) {
print $output;
exit 1;
}
# Parse fields positions