From: Tony Mack Date: Mon, 17 Aug 2009 22:11:23 +0000 (+0000) Subject: no longer support type 'person' X-Git-Tag: sfa-0.9-1~73 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=14b4552d8274be19ddeb316e591caf7e610d660b;p=sfa.git no longer support type 'person' --- diff --git a/sfa/plc/sfaImport.py b/sfa/plc/sfaImport.py index 75292323..fa33a04a 100644 --- 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']: