- Parameter(list, "List of credentials)"))
- ]
-
- returns = [SfaRecord]
-
- def call(self, xrns, creds):
- if not isinstance(xrns, types.ListType):
- xrns=[xrns]
+ Parameter(list, "List of credentials)")),
+ Parameter(dict, "options"),
+ ]
+
+ # xxx used to be [SfaRecord]
+ returns = [Parameter(dict, "registry record")]
+
+ def call(self, xrns, creds, options=None):
+ if options is None:
+ 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, list):
+ type = Xrn(xrns).get_type()
+ xrns = [xrns]