From: rettenbe Date: Wed, 1 Oct 2008 13:32:52 +0000 (+0000) Subject: bugfix: wol invoked with wrong parameter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e08b1ff6b5342e841409a42a52005c13a7db8170;p=gosa.git bugfix: wol invoked with wrong parameter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index f88647f91..aca15bd76 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -740,8 +740,8 @@ sub trigger_action_wake { # build out message my $out_hash = &create_xml_hash("trigger_wake", "GOSA", "KNOWN_SERVER"); - foreach (@{$msg_hash->{target}}) { - &add_content2xml_hash($out_hash, 'macAddress', $_); + foreach (@{$msg_hash->{'macaddress'}}) { + &add_content2xml_hash($out_hash, 'macaddress', $_); } my $out_msg = &create_xml_string($out_hash); diff --git a/gosa-si/server/events/server_server_com.pm b/gosa-si/server/events/server_server_com.pm index 2fd0f7459..a98719038 100644 --- a/gosa-si/server/events/server_server_com.pm +++ b/gosa-si/server/events/server_server_com.pm @@ -278,7 +278,7 @@ sub new_foreign_client { sub trigger_wake { my ($msg, $msg_hash, $session_id) = @_ ; - foreach (@{$msg_hash->{macAddress}}){ + foreach (@{$msg_hash->{'macaddress'}}){ &main::daemon_log("$session_id INFO: trigger wake for $_", 5); my $host = $_; my $ipaddr = '255.255.255.255';