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:
5acc12a
)
tabs
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:56:15 +0000
(20:56 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:56:15 +0000
(20:56 +0000)
sfa/methods/get_credential.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_credential.py
b/sfa/methods/get_credential.py
index
f788ead
..
c624b1b
100644
(file)
--- a/
sfa/methods/get_credential.py
+++ b/
sfa/methods/get_credential.py
@@
-38,11
+38,10
@@
class get_credential(Method):
else:
hrn, type = urn_to_hrn(xrn)
else:
hrn, type = urn_to_hrn(xrn)
- #log the call
- if not origin_hrn:
+
#log the call
+
if not origin_hrn:
origin_hrn = Credential(string=cred).get_gid_caller().get_hrn()
origin_hrn = Credential(string=cred).get_gid_caller().get_hrn()
- self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
-
+ self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
self.api.auth.check(cred, 'getcredential')
self.api.auth.verify_object_belongs_to_me(hrn)
self.api.auth.check(cred, 'getcredential')
self.api.auth.verify_object_belongs_to_me(hrn)