def get_user(username):
    '''
    Get username line from switch

    .. code-block: bash

        salt '*' onyx.cmd get_user username=admin
    '''
    try:
        enable()
        configure_terminal()
        cmd_out = sendline('show running-config | include "username {0} password 7"'.format(username))
        cmd_out.split('\n')
        user = cmd_out[1:-1]
        configure_terminal_exit()
        disable()
        return user
    except TerminalException as e:
        log.error(e)
        return 'Failed to get user'
Get username line from switch

    .. code-block: bash

        salt '*' onyx.cmd get_user username=admin