def a_unexpected_prompt(ctx):
    """Provide message when received humphost prompt."""
    prompt = ctx.ctrl.match.group(0)
    ctx.msg = "Received the jump host prompt: '{}'".format(prompt)
    ctx.device.connected = False
    ctx.finished = True
    raise ConnectionError("Unable to connect to the device.", ctx.ctrl.hostname)
def a_unexpected_prompt ( ctx ) : prompt = ctx . ctrl . match . group ( 0 ) ctx . msg = "Received the jump host prompt: '{}'" . format ( prompt ) ctx . device . connected = False ctx . finished = True raise ConnectionError ( "Unable to connect to the device." , ctx . ctrl . hostname )
Provide message when received humphost prompt.