add key in service return

This commit is contained in:
garnier-quentin 2019-02-05 12:42:05 +01:00
parent 9ce4483bf1
commit f50680278d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ sub run {
my $hostname = $host_names{$entity->{mo_ref}->{value}};
foreach my $service (@{$entity->{serviceInfo}->{service}}) {
push @{$data->{$entity->{mo_ref}->{value}}->{services}}, { label => $service->{label}, policy => $service->{policy}, running => $service->{running} };
push @{$data->{$entity->{mo_ref}->{value}}->{services}}, { key => $service->{key}, label => $service->{label}, policy => $service->{policy}, running => $service->{running} };
}
}