[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Remove another offending getIP()
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv28328/lib/mixminion
Modified Files:
ClientDirectory.py
Log Message:
Remove another offending getIP()
Index: ClientDirectory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientDirectory.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- ClientDirectory.py 7 Aug 2004 14:08:23 -0000 1.44
+++ ClientDirectory.py 6 Dec 2004 20:38:01 -0000 1.45
@@ -897,7 +897,7 @@
mixminion.ServerInfo._addressToNicknameFn = self.getNicknameByAddress
def getNicknameByAddress(self, addr):
- """Given an address (IP or hostname) return the nickname of
+ """Given an address (hostname) return the nickname of
the server with that hostname. Return None if no such
server is known, and a slash-separated string if multiple
servers are known.
@@ -908,7 +908,7 @@
try:
nicknames = []
for desc in self.allServers:
- if addr in (desc.getIP(), desc.getHostname()):
+ if addr == desc.getHostname():
if desc.getNickname() not in nicknames:
nicknames.append(desc.getNickname())
if nicknames: