From df750af81893550a7dbab44c660b3ab1a8e0749b Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 7 Sep 2010 05:55:11 +0000 Subject: [PATCH] remove trailing comma for $servip. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7366 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 582cbb68a..9d630c476 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -447,6 +447,7 @@ sub updateflag { my $port = "3002"; my $servip = `host $servnode | awk '{print \$3}'`; chomp($servip); + $servip =~ s/,$//; # remove trailing comma my $remote = IO::Socket::INET->new( Proto => "tcp", PeerAddr => $servip, PeerPort => $port, Timeout => 0); my $try = 10;