summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e2988b)
raw | patch | inline | side by side (parent: 9e2988b)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Apr 2008 08:29:05 +0000 (08:29 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Apr 2008 08:29:05 +0000 (08:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10635 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/siTriggered.pm | patch | blob | history |
index 5f7e731727eb7c3a20dbde9c0210b9a0b285dd38..18a2a5eb0f935abb536cd1a9ba83e18aab747745 100644 (file)
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
+ $entry->delete($attribute => []);
}
&main::daemon_log("INFO: Adding attribute $attribute with value ".$msg_hash->{detected_hardware}[0]->{$attribute},5);
$entry->add($attribute => $msg_hash->{detected_hardware}[0]->{$attribute});
if(defined($msg_hash->{detected_hardware}[0]->{$attribute}) &&
length($msg_hash->{detected_hardware}[0]->{$attribute}) >0 ) {
if(defined($entry->get_value($attribute))) {
- $entry->delete($attribute);
+ $entry->delete($attribute => []);
}
foreach my $array_entry (keys %{{map { $_ => 1 } sort(@{$msg_hash->{detected_hardware}[0]->{$attribute}}) }}) {
$entry->add($attribute => $array_entry);