def get_all_active_by_stack(cls, context, stack_id): resources_db = db_api.resource_get_all_active_by_stack(context, stack_id) resources = [ (resource_id, cls._from_db_object(cls(context), context, resource_db)) for resource_id, resource_db in six.iteritems(resources_db) ] return dict(resources)
def get_all_active_by_stack(cls, context, stack_id): resources_db = db_api.resource_get_all_active_by_stack( context, stack_id) resources = [(resource_id, cls._from_db_object(cls(context), context, resource_db)) for resource_id, resource_db in resources_db.items()] return dict(resources)