git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetic + one tab required spaces instead
[sfa.git]
/
sfa
/
methods
/
List.py
diff --git
a/sfa/methods/List.py
b/sfa/methods/List.py
index
d53a0a5
..
83d7a6e
100644
(file)
--- 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")]
# 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')
hrn, type = urn_to_hrn(xrn)
valid_creds = self.api.auth.checkCredentials(creds, 'list')