'Gathers facts for Routes in logging namespace'

def facts_for_routes(self, namespace):

    self.default_keys_for('routes')
    route_list = self.oc_command('get', 'routes', namespace=namespace, add_options=['-l', ROUTE_SELECTOR])
    if (len(route_list['items']) == 0):
        return None
    for route in route_list['items']:
        name = route['metadata']['name']
        comp = self.comp(name)
        if (comp is not None):
            self.add_facts_for(comp, 'routes', name, dict(host=route['spec']['host']))
    self.facts['agl_namespace'] = namespace
