git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d653224
)
honor the hrn argument
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 17 Aug 2010 18:08:52 +0000
(18:08 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 17 Aug 2010 18:08:52 +0000
(18:08 +0000)
sfa/methods/get_registries.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_registries.py
b/sfa/methods/get_registries.py
index
0d382d6
..
358874c
100644
(file)
--- a/
sfa/methods/get_registries.py
+++ b/
sfa/methods/get_registries.py
@@
-30,5
+30,7
@@
class get_registries(Method):
def call(self, cred, xrn = None):
hrn, type = urn_to_hrn(xrn)
self.api.auth.check(cred, 'list')
- registries = Registries(self.api)
- return registries.interfaces.values()
+ registries = Registries(self.api).interfaces.values()
+ if hrn:
+ registries = [reg for reg in registries if reg['hrn'] == hrn]
+ return registries