summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e60c48)
raw | patch | inline | side by side (parent: 2e60c48)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 13:50:06 +0000 (13:50 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 13:50:06 +0000 (13:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12240 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/opsi_com.pm | patch | blob | history |
index 2837b3007a39e674fb146f9eddab64d93284a32c..e3394f3a3d24ac884bc994cee170acdd6ede3b5e 100644 (file)
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
}
if ((not exists $msg_hash->{'productId'}) || (@{$msg_hash->{'productId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "productId_error", "no productId specified or productId tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no productId specified or productId tag invalid");
&add_content2xml_hash($out_hash, "error", "productId");
&main::daemon_log("$session_id ERROR: no productId specified or procutId tag invalid: $msg", 1);
}
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
}
if ((not exists $msg_hash->{'productId'}) || (@{$msg_hash->{'productId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "productId_error", "no productId specified or productId tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no productId specified or productId tag invalid");
&add_content2xml_hash($out_hash, "error", "productId");
&main::daemon_log("$session_id ERROR: no productId specified or procutId tag invalid: $msg", 1);
}
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
}
if ((not exists $msg_hash->{'macaddress'}) || (@{$msg_hash->{'macaddress'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "macaddress_error", "no macaddress specified or macaddress tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no macaddress specified or macaddress tag invalid");
&add_content2xml_hash($out_hash, "error", "macaddress");
&main::daemon_log("$session_id ERROR: no macaddress specified or macaddress tag invalid: $msg", 1);
}
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
}
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
# Sanity check of needed parameter
if ((not exists $msg_hash->{'productId'}) || (@{$msg_hash->{'productId'}} != 1)) {
- &add_content2xml_hash($out_hash, "productId_error", "no productId specified or productId tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no productId specified or productId tag invalid");
&add_content2xml_hash($out_hash, "error", "productId");
&main::daemon_log("$session_id ERROR: no productId specified or productId tag invalid: $msg", 1);
# Sanity check of needed parameter
if ((not exists $msg_hash->{'productId'}) || (@{$msg_hash->{'productId'}} != 1)) {
- &add_content2xml_hash($out_hash, "productId_error", "no productId specified or productId tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no productId specified or productId tag invalid");
&add_content2xml_hash($out_hash, "error", "productId");
&main::daemon_log("$session_id ERROR: no productId specified or productId tag invalid: $msg", 1);
return ( &create_xml_string($out_hash) );
}
if (not exists $msg_hash->{'item'}) {
- &add_content2xml_hash($out_hash, "item_error", "message needs one xml-tag 'item' and within the xml-tags 'name' and 'value'");
+ &add_content2xml_hash($out_hash, "error_string", "message needs one xml-tag 'item' and within the xml-tags 'name' and 'value'");
&add_content2xml_hash($out_hash, "error", "item");
&main::daemon_log("$session_id ERROR: message needs one xml-tag 'item' and within the xml-tags 'name' and 'value': $msg", 1);
return ( &create_xml_string($out_hash) );
} else {
if ((not exists @{$msg_hash->{'item'}}[0]->{'name'}) || (@{@{$msg_hash->{'item'}}[0]->{'name'}} != 1 )) {
- &add_content2xml_hash($out_hash, "name_error", "message needs within the xml-tag 'item' one xml-tags 'name'");
+ &add_content2xml_hash($out_hash, "error_string", "message needs within the xml-tag 'item' one xml-tags 'name'");
&add_content2xml_hash($out_hash, "error", "name");
&main::daemon_log("$session_id ERROR: message needs within the xml-tag 'item' one xml-tags 'name': $msg", 1);
return ( &create_xml_string($out_hash) );
}
if ((not exists @{$msg_hash->{'item'}}[0]->{'value'}) || (@{@{$msg_hash->{'item'}}[0]->{'value'}} != 1 )) {
- &add_content2xml_hash($out_hash, "value_error", "message needs within the xml-tag 'item' one xml-tags 'value'");
+ &add_content2xml_hash($out_hash, "error_string", "message needs within the xml-tag 'item' one xml-tags 'value'");
&add_content2xml_hash($out_hash, "error", "value");
&main::daemon_log("$session_id ERROR: message needs within the xml-tag 'item' one xml-tags 'value': $msg", 1);
return ( &create_xml_string($out_hash) );
}
}
if ((exists $msg_hash->{'hostId'}) && (@{$msg_hash->{'hostId'}} != 1)) {
- &add_content2xml_hash($out_hash, "hostId_error", "hostId contains no or more than one values");
+ &add_content2xml_hash($out_hash, "error_string", "hostId contains no or more than one values");
&add_content2xml_hash($out_hash, "error", "hostId");
&main::daemon_log("$session_id ERROR: hostId contains no or more than one values: $msg", 1);
return ( &create_xml_string($out_hash) );
# Sanity check of needed parameter
if ((exists $msg_hash->{'hostId'}) && (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "hostId contains no or more than one values");
+ &add_content2xml_hash($out_hash, "error_string", "hostId contains no or more than one values");
&add_content2xml_hash($out_hash, "error", "hostId");
&main::daemon_log("$session_id ERROR: hostId contains no or more than one values: $msg", 1);
}
# Sanity check of needed parameter
if ((exists $msg_hash->{'hostId'}) && (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "hostId contains no or more than one values");
+ &add_content2xml_hash($out_hash, "error_string", "hostId contains no or more than one values");
&add_content2xml_hash($out_hash, "error", "hostId");
&main::daemon_log("$session_id ERROR: hostId contains no or more than one values: $msg", 1);
}
# Sanity check of needed parameter
if ((exists $msg_hash->{'hostId'}) && (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "hostId contains no or more than one values");
+ &add_content2xml_hash($out_hash, "error_string", "hostId contains no or more than one values");
&add_content2xml_hash($out_hash, "error", "hostId");
&main::daemon_log("$session_id ERROR: hostId contains no or more than one values: $msg", 1);
}
# Sanity check of needed parameter
if ((not exists $msg_hash->{'hostId'}) || (@{$msg_hash->{'hostId'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "hostId_error", "no hostId specified or hostId tag invalid");
+ &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);
}
if ((not exists $msg_hash->{'macaddress'}) || (@{$msg_hash->{'macaddress'}} != 1)) {
$error++;
- &add_content2xml_hash($out_hash, "macaddress_error", "no macaddress specified or macaddress tag invalid");
+ &add_content2xml_hash($out_hash, "error_string", "no macaddress specified or macaddress tag invalid");
&add_content2xml_hash($out_hash, "error", "macaddress");
&main::daemon_log("$session_id ERROR: no macaddress specified or macaddress tag invalid: $msg", 1);
} else {
$macaddress = $1;
} else {
$error ++;
- &add_content2xml_hash($out_hash, "macaddress_error", "given mac address is not correct");
+ &add_content2xml_hash($out_hash, "error_string", "given mac address is not correct");
&add_content2xml_hash($out_hash, "error", "macaddress");
&main::daemon_log("$session_id ERROR: given mac address is not correct: $msg", 1);
}