def show_fact_module(self,module_name): """ Show some info about fact module """ for name,module in minion_query.load_facts_modules().iteritems(): if name == module_name: return { 'name':name, 'description':getattr(module,"description",""), 'version':getattr(module,"version","") } return {}
def show_fact_module(self, module_name): """ Show some info about fact module """ for name, module in minion_query.load_facts_modules().iteritems(): if name == module_name: return { 'name': name, 'description': getattr(module, "description", ""), 'version': getattr(module, "version", "") } return {}
def list_fact_modules(self): """ List facts that are availible in that system """ return minion_query.load_facts_modules().keys()