mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
enh(discovery): remove carriage return from vm annotation
This commit is contained in:
parent
485a4518ff
commit
b5d871a745
@ -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'};
|
||||
|
Loading…
x
Reference in New Issue
Block a user