fix bug
authorTony Mack <tmack@cs.princeton.edu>
Thu, 9 Apr 2009 17:47:46 +0000 (17:47 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 9 Apr 2009 17:47:46 +0000 (17:47 +0000)
geni/methods/get_credential.py

index 2ad9f3a..44ba5fb 100644 (file)
@@ -35,7 +35,7 @@ class get_credential(Method):
             return self.get_self_credential(type, hrn)
         
         self.api.auth.check(cred, 'getcredential')
-        self.api.auth.verify_object_belongs_to_me(name)
+        self.api.auth.verify_object_belongs_to_me(hrn)
         auth_hrn = self.api.auth.get_authority(hrn)
         if not auth_hrn:
             auth_hrn = hrn