X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fxrn.py;h=b0db4c1de5ef10df0e1d130c0e6ba4b437d389d5;hb=a5ffdbbcd754eb4d5542547ed413261d32883c7f;hp=dfcf3e5bec9db5a3cdadd0a0b2e3a7003bf10617;hpb=8f367b9457f47ba1e3b8a56eea8ed5c9b1e52eed;p=sfa.git diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index dfcf3e5b..b0db4c1d 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -117,15 +117,7 @@ class Xrn: for urn in urns: xrn = Xrn(xrn=urn) - if not xrn.type: - # If an xrn doesn't have a type its probably a hrn. - # We have to make some assumptions on the hrn's type - # based on the contents of the hrn. - if type == 'sliver' and '-' in xrn.leaf: - urn_list.append(urn) - elif type != 'sliver' and not '-' in xrn.leaf: - urn_list.append(urn) - elif (xrn.type == type): + if (xrn.type == type): # Xrn is probably a urn so we can just compare types urn_list.append(urn) return urn_list