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:
135b603
)
no longer using geniclient, call registry.get_credential with string_arguments, not...
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Oct 2009 01:28:52 +0000
(
01:28
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Oct 2009 01:28:52 +0000
(
01:28
+0000)
sfa/plc/api.py
patch
|
blob
|
history
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
88a9f35
..
855b0a9
100644
(file)
--- a/
sfa/plc/api.py
+++ b/
sfa/plc/api.py
@@
-194,8
+194,10
@@
class GeniAPI:
arg_list = [self_cred,type,self.hrn]
request_hash=self.key.compute_hash(arg_list)
cred = registry.get_credential(self_cred, type, self.hrn, request_hash)
- cred.save_to_file(cred_filename, save_parents=True)
- return cred.save_to_string(save_parents=True)
+
+ # save cred to file
+ Credential(string=cred).save_to_file(cred_filename, save_parents=True)
+ return cred
def getCredentialFromLocalRegistry(self):
"""