enh(discovery) add custom attributes

This commit is contained in:
garnier-quentin 2022-04-14 09:05:54 +02:00
parent ef1eec0e50
commit fe788ba890
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ sub run {
my $customValuesEsx = [];
if (defined($esx->{'summary.customValue'})) {
foreach (@{$esx->{'summary.customValue'}}) {
push @$customValuesEsx, { key => $customFields->{ $_->{key}}, value => $_->{value}};
push @$customValuesEsx, { key => $customFields->{ $_->{key} }, value => $_->{value} };
}
}
$esx{type} = 'esx';
@ -178,7 +178,7 @@ sub run {
my $customValuesVm = [];
if (defined($vm->{'summary.customValue'})) {
foreach (@{$vm->{'summary.customValue'}}) {
push @$customValuesVm, { key => $customFields->{ $_->{key}}, value => $_->{value}};
push @$customValuesVm, { key => $customFields->{ $_->{key} }, value => $_->{value} };
}
}
$entry->{type} = 'vm';