From 8c8c01d83bbeb7ffdf1da8a91e8e18f2fefa9400 Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 11 Apr 2014 13:27:30 +0100 Subject: [PATCH] Allow the volserver class to be instantiated with an int address Allow the volserver class to be instantiated with an int address that represents a binary coded IPv4 address. Signed-off-by: David Howells --- suite/lib/volserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suite/lib/volserver.py b/suite/lib/volserver.py index 6584efa..a35c963 100644 --- a/suite/lib/volserver.py +++ b/suite/lib/volserver.py @@ -32,6 +32,8 @@ class VolServerError(exception.AFSException): class volserver: """Represents an AFS Volume server. We hold the server address here.""" def __init__(self, name): + if str(type(name)) == "": + name = addrcache.int2addr(name) debug("New VolServer", name) self.__name = name self.__looked_up = False -- 2.50.1