+ add filter on description vm
This commit is contained in:
parent
e64ae47b67
commit
43dd55a016
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue