X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fregistry_manager_pl.py;h=d0998ddc1893ed9434bb07b53081558739121785;hb=010a951595e3120bd7cb10b36d18d04c819c20c6;hp=4bef95dbd03bac5d4521b9451f6b130e2f81c0fd;hpb=8662eb7153c57bb4b7a9b4a29988c304866cc519;p=sfa.git diff --git a/sfa/managers/registry_manager_pl.py b/sfa/managers/registry_manager_pl.py index 4bef95db..d0998ddc 100644 --- a/sfa/managers/registry_manager_pl.py +++ b/sfa/managers/registry_manager_pl.py @@ -89,6 +89,8 @@ def resolve(api, xrns, type=None, full=True): # load all know registry names into a prefix tree and attempt to find # the longest matching prefix if not isinstance(xrns, types.ListType): + if not type: + type = Xrn(xrns).get_type() xrns = [xrns] hrns = [urn_to_hrn(xrn)[0] for xrn in xrns] # create a dict whre key is an registry hrn and its value is a