X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FList.py;h=83d7a6e0135854f8399287a667983daba8c4a7cb;hb=fe5b40a3e021b9c87caf2d1dd9740227759cc05c;hp=d53a0a5eed452064d5af56c88b0c22c4d255ba41;hpb=2ac2da4b770f57bede8e9a9ee65142242fdf05a3;p=sfa.git diff --git a/sfa/methods/List.py b/sfa/methods/List.py index d53a0a5e..83d7a6e0 100644 --- a/sfa/methods/List.py +++ b/sfa/methods/List.py @@ -25,7 +25,8 @@ class List(Method): # xxx used to be [SfaRecord] returns = [Parameter(dict, "registry record")] - def call(self, xrn, creds, options={}): + def call(self, xrn, creds, options=None): + if options is None: options={} hrn, type = urn_to_hrn(xrn) valid_creds = self.api.auth.checkCredentials(creds, 'list')