def implementation_components(self): keys = self.getCinderIntegrationKeys() if not keys: return [] catalog = get_cinder_implementation_catalog(self.dmd) return [brain.getObject() for brain in catalog(getCinderIntegrationKeys=keys)]
def implementation_components(self): keys = self.getCinderIntegrationKeys() if not keys: return [] catalog = get_cinder_implementation_catalog(self.dmd) implementationcomponents = [] for brain in catalog(getCinderIntegrationKeys=keys): try: obj = brain.getObject() except Exception: # ignore a stale entry pass else: implementationcomponents.append(obj) return implementationcomponents