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:
6073203
)
fix credential file path
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 2 Jun 2009 21:00:05 +0000
(21:00 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 2 Jun 2009 21:00:05 +0000
(21:00 +0000)
geni/util/api.py
patch
|
blob
|
history
diff --git
a/geni/util/api.py
b/geni/util/api.py
index
800840b
..
8e86402
100644
(file)
--- a/
geni/util/api.py
+++ b/
geni/util/api.py
@@
-167,7
+167,9
@@
class GeniAPI:
Get our credential from a remote registry using a geniclient connection
"""
type = 'authority'
- cred_filename = ".".join([self.server_basedir, self.interface, self.hrn, type, "cred"])
+ path = self.config.basepath
+ filename = ".".join([self.interface, self.hrn, type, "cred"])
+ cred_filename = path + os.sep + filename
try:
credential = Credential(filename = cred_filename)
return credential