Code

Removed newlines from cmd output.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 20 Feb 2008 13:52:22 +0000 (13:52 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 20 Feb 2008 13:52:22 +0000 (13:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8989 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index 47092086595211b4ea0d87909391e70acf779b3f..3250fb1cf12f6ac376dc2939ae08c04a47a2cae3 100644 (file)
@@ -91,6 +91,7 @@ if((not defined($gosa_unit_tag)) || length($gosa_unit_tag) == 0) {
                } else {
                        # Perform another search for Unit Tag
                        my $hostname= `hostname -f`;
+                       chomp($hostname);
                        &main::daemon_log("Searching for servers gosaUnitTag with hostname $hostname",6);
                        $mesg = $tmp_ldap->search(
                                base   => $ldap_base,
@@ -108,6 +109,7 @@ if((not defined($gosa_unit_tag)) || length($gosa_unit_tag) == 0) {
                        } else {
                                # Perform another search for Unit Tag
                                $hostname= `hostname -s`;
+                               chomp($hostname);
                                &main::daemon_log("Searching for servers gosaUnitTag with hostname $hostname",6);
                                $mesg = $tmp_ldap->search(
                                        base   => $ldap_base,