def do_clearstate(self, context, node): 'usage: clearstate <node>' if not utils.is_name_sane(node): return False if not config.core.force and \ not utils.ask("Do you really want to drop state for node %s?" % node): return False if utils.is_pcmk_118(): return utils.ext_cmd(self.node_clear_state_118 % node) == 0 else: return utils.ext_cmd(self.node_clear_state % ("-M -c", node, node)) == 0 and \ utils.ext_cmd(self.node_clear_state % ("-R", node, node)) == 0
def compatibility_setup(): if not utils.is_pcmk_118(): constants.node_type_opt = False del constants.attr_defaults["node"] constants.cib_no_section_rc = 22
def compatibility_setup(): if not utils.is_pcmk_118(): del constants.attr_defaults["node"] constants.cib_no_section_rc = 22
def compatibility_setup(): if utils.is_pcmk_118(): vars.node_type_opt = True vars.attr_defaults["node"] = {"type": "normal"} vars.cib_no_section_rc = 6