'Gathers facts for configmaps in logging namespace'

def facts_for_configmaps(self, namespace):

    self.default_keys_for('configmaps')
    a_list = self.oc_command('get', 'configmaps', namespace=namespace, add_options=['-l', LOGGING_SELECTOR])
    if (len(a_list['items']) == 0):
        return
    for item in a_list['items']:
        name = item['metadata']['name']
        comp = self.comp(name)
        if (comp is not None):
            self.add_facts_for(comp, 'configmaps', name, item['data'])
