From f50680278d708c147f0ee8f4aa78f00c40411336 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 5 Feb 2019 12:42:05 +0100 Subject: [PATCH] add key in service return --- connectors/vmware/src/centreon/vmware/cmdservicehost.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/vmware/src/centreon/vmware/cmdservicehost.pm b/connectors/vmware/src/centreon/vmware/cmdservicehost.pm index eea7607e0..992b88c98 100644 --- a/connectors/vmware/src/centreon/vmware/cmdservicehost.pm +++ b/connectors/vmware/src/centreon/vmware/cmdservicehost.pm @@ -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} }; } }