[LON-CAPA-cvs] cvs: loncom / loncron

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 09 Feb 2005 20:41:30 -0000


albertel		Wed Feb  9 15:41:30 2005 EDT

  Modified files:              
    /loncom	loncron 
  Log:
  - IP removal from hosts.tab
  
  
Index: loncom/loncron
diff -u loncom/loncron:1.55 loncom/loncron:1.56
--- loncom/loncron:1.55	Thu Jan 20 11:27:40 2005
+++ loncom/loncron	Wed Feb  9 15:41:29 2005
@@ -2,7 +2,7 @@
 
 # Housekeeping program, started by cron, loncontrol and loncron.pl
 #
-# $Id: loncron,v 1.55 2005/01/20 16:27:40 albertel Exp $
+# $Id: loncron,v 1.56 2005/02/09 20:41:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -633,8 +633,9 @@
     my (%hostname,%hostdom,%hostrole,%spareid);
     while (my $configline=<$config>) {
 	next if ($configline =~ /^(\#|\s*\$)/);
-	my ($id,$domain,$role,$name,$ip,$domdescr)=split(/:/,$configline);
-	if ($id && $domain && $role && $name && $ip) {
+	my ($id,$domain,$role,$name)=split(/:/,$configline);
+	if ($id && $domain && $role && $name) {
+	    $name=~s/\s//g;
 	    $hostname{$id}=$name;
 	    $hostdom{$id}=$domain;
 	    $hostrole{$id}=$role;