X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FResolve.py;h=f3a6e67135497c3704dc439e03402058ce312953;hb=1cc8e9613cab8b5b22478de369f259e591c54e6d;hp=6a323440d97c23058a3de43e797e47000de76910;hpb=ec119c68825b2b16a249d120422739e3f7b32a9d;p=sfa.git diff --git a/sfa/methods/Resolve.py b/sfa/methods/Resolve.py index 6a323440..f3a6e671 100644 --- a/sfa/methods/Resolve.py +++ b/sfa/methods/Resolve.py @@ -23,15 +23,18 @@ class Resolve(Method): Mixed(Parameter(str, "Human readable name (hrn or urn)"), Parameter(list, "List of Human readable names ([hrn])")), Mixed(Parameter(str, "Credential string"), - Parameter(list, "List of credentials)")) + Parameter(list, "List of credentials)")), + Parameter(dict, "options"), ] # xxx used to be [SfaRecord] returns = [Parameter(dict, "registry record")] - def call(self, xrns, creds): - # xxx should be ar arg - details=False + def call(self, xrns, creds, options={}): + # use details=False by default, only when explicitly specified do we want + # to mess with the testbed details + if 'details' in options: details=options['details'] + else: details=False type = None if not isinstance(xrns, types.ListType): type = Xrn(xrns).get_type()