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:
a576026
)
no longer support type 'person'
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 17 Aug 2009 22:11:23 +0000
(22:11 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 17 Aug 2009 22:11:23 +0000
(22:11 +0000)
sfa/plc/sfaImport.py
patch
|
blob
|
history
diff --git
a/sfa/plc/sfaImport.py
b/sfa/plc/sfaImport.py
index
7529232
..
fa33a04
100644
(file)
--- a/
sfa/plc/sfaImport.py
+++ b/
sfa/plc/sfaImport.py
@@
-284,7
+284,7
@@
class sfaImport:
if type in ['slice'] and 'name' in object and object['name']:
slice_name = object['name'].split("_")[0]
hrn = parent_hrn + "." + slice_name
- elif type in ['user'
, 'person'
] and 'email' in object and object['email']:
+ elif type in ['user'] and 'email' in object and object['email']:
person_name = object['email'].split('@')[0]
hrn = parent_hrn + "." + person_name
elif type in ['node'] and 'hostname' in object and object['hostname']: