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
(parent:
85c2e92
)
fixed raised exception
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 2 Jun 2009 20:28:13 +0000
(20:28 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 2 Jun 2009 20:28:13 +0000
(20:28 +0000)
geni/methods/get_credential.py
patch
|
blob
|
history
diff --git
a/geni/methods/get_credential.py
b/geni/methods/get_credential.py
index
3cfe5c1
..
4ee2e2d
100644
(file)
--- a/
geni/methods/get_credential.py
+++ b/
geni/methods/get_credential.py
@@
-111,7
+111,7
@@
class get_credential(Method):
rights = self.api.auth.determine_user_rights(None, record)
if rights.is_empty():
- raise PermissionError(
self.api.auth.client_cred.get_gid_object()
.get_hrn() + " has no rights to " + record.get_name())
+ raise PermissionError(
gid
.get_hrn() + " has no rights to " + record.get_name())
# create the credential
gid = record.get_gid_object()