summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18b2a97)
raw | patch | inline | side by side (parent: 18b2a97)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Aug 2008 06:57:25 +0000 (06:57 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Aug 2008 06:57:25 +0000 (06:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12249 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/opsi_com.pm | patch | blob | history |
index e3394f3a3d24ac884bc994cee170acdd6ede3b5e..870e54927003a3f7c5523d69c0d59b5a7bb5782c 100644 (file)
&add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa);
}
- # Sanity check of needed parameter
- if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
- &add_content2xml_hash($out_hash, "error_string", "no hostId specified or hostId tag invalid");
- &add_content2xml_hash($out_hash, "error", "hostId");
- &main::daemon_log("$session_id ERROR: no hostId specified or hostId tag invalid: $msg", 1);
- return &create_xml_string($out_hash);
- }
-
# Get hostID if defined
- $hostId = @{$msg_hash->{'hostId'}}[0];
- &add_content2xml_hash($out_hash, "hostId", $hostId);
+ if ((exists $msg_hash->{'hostId'}) && (@{$msg_hash->{'hostId'}} == 1)) {
+ $hostId = @{$msg_hash->{'hostId'}}[0];
+ &add_content2xml_hash($out_hash, "hostId", $hostId);
+ }
&add_content2xml_hash($out_hash, "xxx", "");
$xml_msg= &create_xml_string($out_hash);