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:
ec55bfc
)
fix incorrect variable names
author
Scott Baker
<bakers@cs.arizona.edu>
Thu, 23 Apr 2009 21:41:37 +0000
(21:41 +0000)
committer
Scott Baker
<bakers@cs.arizona.edu>
Thu, 23 Apr 2009 21:41:37 +0000
(21:41 +0000)
geni/methods/create_gid.py
patch
|
blob
|
history
diff --git
a/geni/methods/create_gid.py
b/geni/methods/create_gid.py
index
7e8b6fd
..
a99936c
100644
(file)
--- a/
geni/methods/create_gid.py
+++ b/
geni/methods/create_gid.py
@@
-32,7
+32,7
@@
class create_gid(Method):
returns = Parameter(str, "String represeneation of a GID object")
def call(self, cred, hrn, uuid, pubkey_str):
returns = Parameter(str, "String represeneation of a GID object")
def call(self, cred, hrn, uuid, pubkey_str):
- self.api.auth.
decode_authentication
(cred, "getcredential")
+ self.api.auth.
check
(cred, "getcredential")
self.api.auth.verify_object_belongs_to_me(hrn)
self.api.auth.verify_object_permission(hrn)
self.api.auth.verify_object_belongs_to_me(hrn)
self.api.auth.verify_object_permission(hrn)
@@
-41,6
+41,6
@@
class create_gid(Method):
pkey = Keypair()
pkey.load_pubkey_from_string(pubkey_str)
pkey = Keypair()
pkey.load_pubkey_from_string(pubkey_str)
- gid = self.api.auth.hierarchy.create_gid(
name
, uuid, pkey)
+ gid = self.api.auth.hierarchy.create_gid(
hrn
, uuid, pkey)
return gid.save_to_string(save_parents=True)
return gid.save_to_string(save_parents=True)