From: Tony Mack Date: Wed, 1 Feb 2012 02:56:50 +0000 (-0500) Subject: fix bug in init X-Git-Tag: merged-in-sfa-2.1-2~45 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=6d84f7eb25352c50e40950d0585c33bd1193649e fix bug in init --- diff --git a/sfa/util/osxrn.py b/sfa/util/osxrn.py index af0979a8..752feecc 100644 --- a/sfa/util/osxrn.py +++ b/sfa/util/osxrn.py @@ -4,13 +4,15 @@ from sfa.util.config import Config class OSXrn(Xrn): - def __init__(self, name=None, type=None, *args, **kwds): + def __init__(self, name=None, type=None, **kwds): + config = Config() if name is not None: self.type = type self.hrn = config.SFA_INTERFACE_HRN + "." + name self.hrn_to_urn() - + else: + Xrn.__init__(self, **kwds) self.name = self.get_name()