fix bug in verify object belongs to me
authorTony Mack <tmack@cs.princeton.edu>
Sun, 27 Sep 2009 00:02:31 +0000 (00:02 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Sun, 27 Sep 2009 00:02:31 +0000 (00:02 +0000)
sfa/trust/auth.py

index f0574d9..2f807a7 100644 (file)
@@ -96,6 +96,7 @@ class Auth:
         @param auth_name human readable name of authority
         """
 
+        # get auth info will throw an exception if the authority doesnt exist
         self.get_auth_info(name)
 
 
@@ -108,9 +109,9 @@ class Auth:
         @param name human readable name of object        
         """
         auth_name = self.get_authority(name)
-        if not auth_name or name == self.config.SFA_INTERFACE_HRN:
-            # the root authority belongs to the registry by default?
-            # TODO: is this true?
+        if not auth_name:
+            auth_name = name 
+        if name == self.config.SFA_INTERFACE_HRN:
             return
         self.verify_auth_belongs_to_me(auth_name)