git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5bb4472
)
fix bug in init
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 1 Feb 2012 02:56:50 +0000
(21:56 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 1 Feb 2012 02:56:50 +0000
(21:56 -0500)
sfa/util/osxrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/osxrn.py
b/sfa/util/osxrn.py
index
af0979a
..
752feec
100644
(file)
--- a/
sfa/util/osxrn.py
+++ b/
sfa/util/osxrn.py
@@
-4,13
+4,15
@@
from sfa.util.config import Config
class OSXrn(Xrn):
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()
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()
self.name = self.get_name()