From f00d2217f9d683c71c1ff1feac3bddcb161931e7 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 22 Jun 2006 09:05:14 +0000 Subject: [PATCH] Fixed bug with number in localhost name --- bin/nameserver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/nameserver.py b/bin/nameserver.py index 1db35862d..e6d9d0497 100755 --- a/bin/nameserver.py +++ b/bin/nameserver.py @@ -54,7 +54,11 @@ class NamingServer(Server): ss=re.findall("NameService=corbaname::" + hname + ":\d+", f.read()) print "ss = ", ss f.close() - aPort=re.findall("\d+", ss[0])[0] + sl=ss[0] + ll = sl.split(':') + aPort = ll[-1] + #aPort=(ss.join().split(':'))[2]; + #aPort=re.findall("\d+", ss[0])[0] #aSedCommand="s/.*NameService=corbaname::" + hname + ":\([[:digit:]]*\)/\1/" #print "sed command = ", aSedCommand -- 2.39.2