def add_jumpbox(host):
    if jb.cluster.locate(host):
        return
    print('Connecting to jumpbox:', host)
    try:
        t = ssh.connection_worker(host, None, init_data['auth'])
        retries = 3
        while not t.is_authenticated() and retries > 0:
            # Try interactive password authentication
            print('Failed to authenticate to Jumpbox (%s)' % host)
            jb_user = raw_input(host % 'Enter username for [%s]: ')
            jb_passwd = getpass.getpass('Enter password for %s@%s: ' % (jb_user, host))
            reauth = AuthManager(jb_user, auth_file=None, include_agent=False,
                                 include_userkeys=False, default_password=jb_passwd)
            t = ssh.connection_worker(host, None, reauth)
            retries -= 1

    except Exception as e:
        print(host, repr(e))
    finally:
        jb.cluster.connections[host] = t
dataset/ETHPy150Open radssh/radssh/radssh/core_plugins/jumpbox.py/add_jumpbox/swapped operands of `%`