From: Tony Mack Date: Thu, 15 Jul 2010 20:41:59 +0000 (+0000) Subject: merge from geni branch X-Git-Tag: sfa-1.0-0~151 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=11fdbb35325530daf834d5ba1222b2b7ea7f04a0;p=sfa.git merge from geni branch --- diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index c771d717..d036f064 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -66,8 +66,7 @@ def urn_to_hrn(urn): name = urn[len(URN_PREFIX):] hrn_parts = name.split("+") - # type is always the second to last element in the list - type = hrn_parts.pop(-2) + type = hrn_parts.pop(2) # convert hrn_parts (list) into hrn (str) by doing the following # remove blank elements