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
(from parent 1:
a223761
)
expect user records to only have 1 public key
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 3 Aug 2009 20:18:52 +0000
(20:18 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 3 Aug 2009 20:18:52 +0000
(20:18 +0000)
sfa/methods/register.py
patch
|
blob
|
history
diff --git
a/sfa/methods/register.py
b/sfa/methods/register.py
index
9f5d019
..
d92437b
100644
(file)
--- a/
sfa/methods/register.py
+++ b/
sfa/methods/register.py
@@
-49,8
+49,8
@@
class register(Method):
if 'gid' not in record:
uuid = create_uuid()
pkey = Keypair(create=True)
- if 'keys' in record and record['key
s
']:
- pkey = convert_public_key(record['key
s'][0
])
+ if 'keys' in record and record['key']:
+ pkey = convert_public_key(record['key
'
])
gid_object = self.api.auth.hierarchy.create_gid(name, uuid, pkey)
gid = gid_object.save_to_string(save_parents=True)