enh(discovery): remove carriage return from vm annotation

This commit is contained in:
Colin Gagnaire 2020-04-30 16:10:31 +02:00
parent 485a4518ff
commit b5d871a745
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ sub run {
$vm{uuid} = $vm->{'config.uuid'};
$vm{folder} = (defined($vm->parent) && $vm->parent->type eq 'Folder') ? $self->{paths}->{$vm->parent->value} : '';
$vm{annotation} = $vm->{'config.annotation'};
$vm{annotation} =~ s/\n/ /g if (defined($vm{annotation}));
$vm{os} = $vm->{'config.guestId'};
$vm{hardware} = $vm->{'config.version'};
$vm{guest_name} = $vm->{'guest.hostName'};