Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
 def requires(self):
     return cib_factory.initialize()
Ejemplo n.º 4
0
 def requires(self):
     return cib_factory.initialize()