summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb6b902)
raw | patch | inline | side by side (parent: cb6b902)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jul 2008 13:46:12 +0000 (13:46 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jul 2008 13:46:12 +0000 (13:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11514 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index 2b3e78498284e7d3678c4701d819ea81536fca3c..efeb3f51d9de3d633c9beef9157f35af772383e9 100644 (file)
sub trigger_action_wake {
my ($msg, $msg_hash, $session_id) = @_;
-
+
my $jobdb_id = @{$msg_hash->{'jobdb_id'}}[0];
if( defined $jobdb_id) {
my $sql_statement = "UPDATE $main::job_queue_tn SET status='processed' WHERE id=jobdb_id";
# build out message
my $out_hash = &create_xml_hash("trigger_wake", "GOSA", "KNOWN_SERVER");
- &add_content2xml_hash($out_hash, 'macAddress', @{$msg_hash->{macaddress}}[0]);
+ foreach (@{$msg_hash->{target}}) {
+ &add_content2xml_hash($out_hash, 'macAddress', $_);
+ }
my $out_msg = &create_xml_string($out_hash);
# invoke trigger wake for this gosa-si-server
&main::server_server_com::trigger_wake($out_msg, $out_hash, $session_id);
- #my %data = ( 'macAddress' => \@{$msg_hash->{macaddress}} );
- #my $out_msg = &build_msg("trigger_wake", "GOSA", "KNOWN_SERVER", \%data);
-
# send trigger wake to all other gosa-si-server
my @out_msg_l = ($out_msg);
return @out_msg_l;