git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
173a762
)
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
author
Loic Baron
<loic.baron@lip6.fr>
Wed, 4 Mar 2015 12:51:58 +0000
(13:51 +0100)
committer
Loic Baron
<loic.baron@lip6.fr>
Wed, 4 Mar 2015 12:51:58 +0000
(13:51 +0100)
tools/reset_gids.py
patch
|
blob
|
history
diff --git
a/tools/reset_gids.py
b/tools/reset_gids.py
index
453af29
..
f4b7da5
100755
(executable)
--- a/
tools/reset_gids.py
+++ b/
tools/reset_gids.py
@@
-20,7
+20,8
@@
def fix_users():
uuid = create_uuid()
pkey = Keypair(create=True)
pub_key=getattr(record,'reg_keys',None)
- if pub_key is not None:
+ print pub_key
+ if len(pub_key) > 0:
# use only first key in record
if pub_key and isinstance(pub_key, types.ListType): pub_key = pub_key[0]
pub_key = pub_key.key