From: Anil-Kumar Vengalil Date: Thu, 3 Sep 2009 09:35:59 +0000 (+0000) Subject: bug fix in upcalls X-Git-Tag: PLCAPI-4.3-23~8 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=4893cdac37baf58fa621540cf76a190c54bd3208 bug fix in upcalls --- diff --git a/PLC/SFA.py b/PLC/SFA.py index b1cdbc4..7671ac8 100644 --- a/PLC/SFA.py +++ b/PLC/SFA.py @@ -81,11 +81,11 @@ class SFA: parent_hrn = authority + "." + login_base if type in ['person', 'user']: name_parts = object['email'].split("@") - hrn = parent_hrn + "." + name_parts[:1] + hrn = parent_hrn + "." + name_parts[:1][0] elif type in ['slice']: name_parts = object['name'].split("_") - hrn = parent_hrn + "." + name_parts[-1:] + hrn = parent_hrn + "." + name_parts[-1:][0] elif type in ['node']: hrn = hostname_to_hrn(self.authority, login_base, object['hostname'])