示例#1
0
文件: ui_configure.py 项目: lge/crmsh
 def requires(self):
     if not cib_factory.initialize():
         return False
     # see the configure ptest/simulate command
     has_ptest = utils.is_program('ptest')
     has_simulate = utils.is_program('crm_simulate')
     if not has_ptest:
         constants.simulate_programs["ptest"] = "crm_simulate"
     if not has_simulate:
         constants.simulate_programs["simulate"] = "ptest"
     if not (has_ptest or has_simulate):
         common_warn("neither ptest nor crm_simulate exist, check your installation")
         constants.simulate_programs["ptest"] = ""
         constants.simulate_programs["simulate"] = ""
     return True
示例#2
0
 def requires(self):
     if not cib_factory.initialize():
         return False
     # see the configure ptest/simulate command
     has_ptest = utils.is_program('ptest')
     has_simulate = utils.is_program('crm_simulate')
     if not has_ptest:
         constants.simulate_programs["ptest"] = "crm_simulate"
     if not has_simulate:
         constants.simulate_programs["simulate"] = "ptest"
     if not (has_ptest or has_simulate):
         common_warn(
             "neither ptest nor crm_simulate exist, check your installation"
         )
         constants.simulate_programs["ptest"] = ""
         constants.simulate_programs["simulate"] = ""
     return True
示例#3
0
文件: ui_assist.py 项目: icclab/crmsh
 def requires(self):
     return cib_factory.initialize()
示例#4
0
 def requires(self):
     return cib_factory.initialize()