Code

Moved read_configfile to local_read_configfile.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Sep 2008 12:18:07 +0000 (12:18 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Sep 2008 12:18:07 +0000 (12:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12363 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ArpHandler.pm

index f8ab3610761459a1bdc32e6ffbdab2c70c77e513..f44d72976fddba51a982ef0c72a96017d87a79e9 100644 (file)
@@ -40,16 +40,16 @@ my $ldap;
 
 my %cfg_defaults =
 (
-       "ArpHandler" => {
-               "enabled"           => [\$arp_enabled,         "true"],
-               "interface"       => [\$arp_interface,    "all"],
-       },
-       "server" => {
-               "ldap-uri"            => [\$ldap_uri,            ""],
-               "ldap-base"           => [\$ldap_base,           ""],
-               "ldap-admin-dn"       => [\$ldap_admin_dn,       ""],
-               "ldap-admin-password" => [\$ldap_admin_password, ""],
-       },
+    "ArpHandler" => {
+        "enabled"             => [\$arp_enabled,         "true"],
+        "interface"           => [\$arp_interface,       "all"],
+    },
+    "server" => {
+        "ldap-uri"            => [\$ldap_uri,            ""],
+        "ldap-base"           => [\$ldap_base,           ""],
+        "ldap-admin-dn"       => [\$ldap_admin_dn,       ""],
+        "ldap-admin-password" => [\$ldap_admin_password, ""],
+    },
 );
 
 #===  FUNCTION  ================================================================
@@ -58,7 +58,7 @@ my %cfg_defaults =
 #      RETURNS:  nothing
 #  DESCRIPTION:  read cfg_file and set variables
 #===============================================================================
-sub read_configfile {
+sub local_read_configfile {
        my $cfg;
        if( defined( $main::cfg_file) && ( (-s $main::cfg_file) > 0 )) {
                if( -r $main::cfg_file ) {
@@ -82,7 +82,7 @@ sub get_module_info {
                undef,
        );
 
-       &read_configfile();
+       &local_read_configfile();
        # Don't start if some of the modules are missing
        if(($arp_enabled eq 'true') && $start_service) {
                if($lookup_vendor) {