def step_impl(context, cmd, addr): out = run_command_local_or_remote(context, cmd, addr) context.stdout = out
def step_impl(context, addr): out = run_command_local_or_remote(context, 'crm_mon -1', addr) if out: context.logger.info("\n{}".format(out))
def step_impl(context, disk, addr): out = run_command_local_or_remote(context, "fdisk -l", addr) assert re.search(r'{} '.format(disk), out) is not None
def step_impl(context, cmd, addr): run_command_local_or_remote(context, cmd, addr, err_record=True)
def step_impl(context, addr, node): out = run_command_local_or_remote(context, 'corosync-cfgtool -s', node) res = re.search(r' {}\n'.format(addr), out) assert bool(res) is True