From 4d5bc92435650871df1b62c52f755de027ab346d Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 17 Aug 2010 18:08:52 +0000 Subject: [PATCH 1/1] honor the hrn argument --- sfa/methods/get_registries.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sfa/methods/get_registries.py b/sfa/methods/get_registries.py index 0d382d61..358874c8 100644 --- 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 -- 2.43.0