diff --git a/connectors/vmware/src/centreon/esxd/cmdthinprovisioningvm.pm b/connectors/vmware/src/centreon/esxd/cmdthinprovisioningvm.pm index 99bbd96e5..81c89d4c2 100644 --- a/connectors/vmware/src/centreon/esxd/cmdthinprovisioningvm.pm +++ b/connectors/vmware/src/centreon/esxd/cmdthinprovisioningvm.pm @@ -87,6 +87,10 @@ sub run { } else { $filters{name} = qr/$self->{vm_hostname}/; } + if (defined($self->{filter_description}) && $self->{filter_description} ne '') { + $filters{'config.annotation'} = qr/$self->{filter_description}/; + } + my @properties = ('name', 'config.hardware.device', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { push @properties, 'config.annotation'; diff --git a/connectors/vmware/src/centreon/esxd/cmdtoolsvm.pm b/connectors/vmware/src/centreon/esxd/cmdtoolsvm.pm index 47e16be82..45dc72316 100644 --- a/connectors/vmware/src/centreon/esxd/cmdtoolsvm.pm +++ b/connectors/vmware/src/centreon/esxd/cmdtoolsvm.pm @@ -96,6 +96,10 @@ sub run { } else { $filters{name} = qr/$self->{vm_hostname}/; } + if (defined($self->{filter_description}) && $self->{filter_description} ne '') { + $filters{'config.annotation'} = qr/$self->{filter_description}/; + } + my @properties = ('name', 'summary.guest.toolsStatus', 'runtime.connectionState', 'runtime.powerState'); if (defined($self->{display_description})) { push @properties, 'config.annotation';