fix potential attribute error
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 30 Aug 2012 15:23:35 +0000 (11:23 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 30 Aug 2012 15:23:35 +0000 (11:23 -0400)
sfa/openstack/osxrn.py
sfa/util/xrn.py

index cb30eb2..6a3944c 100644 (file)
@@ -19,6 +19,7 @@ class OSXrn(Xrn):
         config = Config()
         self.id = id
         if name is not None:
+            Xrn.__init__(self, **kwds)
             if 'type' in kwds:
                 self.type = kwds['type']
             if auth is not None:
index 02f4adb..0721f81 100644 (file)
@@ -116,7 +116,7 @@ class Xrn:
     # self.type\r
     # self.path\r
     # provide either urn, or (hrn + type)\r
-    def __init__ (self, xrn, type=None, id=None):\r
+    def __init__ (self, xrn="", type=None, id=None):\r
         if not xrn: xrn = ""\r
         # user has specified xrn : guess if urn or hrn\r
         self.id = id\r