Exemple #1
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
Exemple #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
Exemple #3
0
 def requires(self):
     return cib_factory.initialize()
Exemple #4
0
 def requires(self):
     return cib_factory.initialize()