From 8497942234974c1ad9cd04c5f2e3594a9ad92b6b Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 3 Sep 2008 07:39:47 +0000 Subject: [PATCH] update: ownership of installing jobs can be switch among si-server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12351 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/clMessages.pm | 6 +++--- gosa-si/tests/client.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index 4157f2153..fde8b36b4 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -380,7 +380,7 @@ sub TASKBEGIN { if (keys(%$res) == 1) { &main::daemon_log("$session_id DEBUG: there is already one processing job in queue for host '$macaddress', run an update for this entry", 7); my $sql_statement = "UPDATE $main::job_queue_tn ". - "SET result='$header $content', modified='1' ". + "SET result='$header $content', modified='1', siserver='localhost' ". "WHERE status='processing' AND macaddress LIKE '$macaddress'"; my $err = $main::job_db->update_dbentry($sql_statement); if (not defined $err) { @@ -427,7 +427,7 @@ sub TASKBEGIN { } } - + # In any case add a new job to job queue &main::daemon_log("$session_id DEBUG: add job to queue for host '$macaddress'", 7); my $func_dic = {table=>$main::job_queue_tn, primkey=>['macaddress', 'headertag'], @@ -441,7 +441,7 @@ sub TASKBEGIN { macaddress=>$macaddress, plainname=>$plain_name, modified=>'1', - siserver=>$source, + siserver=>'localhost', }; my ($err, $error_str) = $main::job_db->add_dbentry($func_dic); if ($err != 0) { diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 321cd980e..b8659926d 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -74,10 +74,10 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_get_login_usr_for_client
GOSA GOSA 00:01:6c:9d:b9:fa
"; # get_client_for_login_usr - #$data = "
gosa_get_client_for_login_usr
GOSA GOSA harald
"; + $data = "
gosa_get_client_for_login_usr
GOSA GOSA rettenbe
"; # List all si-server providing opsi - $data = "
gosa_get_hosts_with_module
GOSA 10.89.1.31:20081 opsi_com
"; + #$data = "
gosa_get_hosts_with_module
GOSA 10.89.1.31:20081 opsi_com
"; ################## # recreate fai dbs -- 2.30.2