X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fregistry_manager_pl.py;h=135fd8dafe8a6e7122d133c15fdb08c256cae4ff;hb=3bc12a155eb7a4353cf3343a6a1720b21862d0fd;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..135fd8da 100644 --- a/sfa/managers/registry_manager_pl.py +++ b/sfa/managers/registry_manager_pl.py @@ -13,6 +13,7 @@ from sfa.trust.credential import Credential from sfa.trust.certificate import Certificate, Keypair from sfa.trust.gid import create_uuid from sfa.util.version import version_core +from sfa.managers.aggregate_manager_pl import slice_status # The GENI GetVersion call def GetVersion(api): @@ -89,6 +90,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