+ add filter on description vm

This commit is contained in:
Quentin Garnier 2015-02-20 14:47:07 +01:00
parent e64ae47b67
commit 43dd55a016
6 changed files with 24 additions and 0 deletions

View File

@ -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', 'runtime.connectionState', 'runtime.powerState');
if (defined($self->{display_description})) {
push @properties, 'config.annotation';

View File

@ -93,6 +93,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', 'datastore', 'runtime.connectionState', 'runtime.powerState');
if (defined($self->{display_description})) {
push @properties, 'config.annotation';

View File

@ -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', 'runtime.connectionState', 'runtime.powerState', 'config.cpuAllocation.limit', 'config.memoryAllocation.limit');
if (defined($self->{check_disk_limit})) {
push @properties, 'config.hardware.device';

View File

@ -89,6 +89,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.config.memorySizeMB', 'runtime.connectionState', 'runtime.powerState');
if (defined($self->{display_description})) {
push @properties, 'config.annotation';

View File

@ -81,6 +81,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 = ('snapshot.rootSnapshotList', 'name', 'runtime.connectionState', 'runtime.powerState');
if (defined($self->{check_consolidation}) == 1) {
push @properties, 'runtime.consolidationNeeded';

View File

@ -89,6 +89,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', 'runtime.connectionState', 'runtime.powerState');
if (defined($self->{display_description})) {
push @properties, 'config.annotation';