示例#1
0
文件: fact.py 项目: jacknjzhou/func
 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 {}
示例#2
0
文件: fact.py 项目: scibian/func
    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 {}
示例#3
0
文件: fact.py 项目: jacknjzhou/func
 def list_fact_modules(self):
     """
     List facts that are availible in that system
     """
     return minion_query.load_facts_modules().keys()
示例#4
0
文件: fact.py 项目: scibian/func
 def list_fact_modules(self):
     """
     List facts that are availible in that system
     """
     return minion_query.load_facts_modules().keys()