index 2ae7a78bd3e2d54881f4e9ab86a7c6c51c22c5e5..5f7e731727eb7c3a20dbde9c0210b9a0b285dd38 100644 (file)
if(defined($entry->get_value($attribute))) {
$entry->delete($attribute);
}
- foreach my $array_entry (@{$msg_hash->{detected_hardware}[0]->{$attribute}}) {
+ foreach my $array_entry (keys %{{map { $_ => 1 } sort(@{$msg_hash->{detected_hardware}[0]->{$attribute}}) }}) {
$entry->add($attribute => $array_entry);
}
}