def vms(nictag):
    '''
    List all vms connect to nictag

    nictag : string
        name of nictag

    CLI Example:

    .. code-block:: bash

        salt '*' nictagadm.vms admin
    '''
    ret = {}
    nictagadm = _check_nictagadm()
    cmd = '{nictagadm} vms {nictag}'.format(
        nictagadm=nictagadm,
        nictag=nictag
    )
    res = __salt__['cmd.run_all'](cmd)
    retcode = res['retcode']
    if retcode != 0:
        ret['Error'] = res['stderr'] if res in 'stderr' else 'Failed to get list of vms.'
    else:
        ret = res['stdout'].splitlines()
    return ret
dataset/ETHPy150Open saltstack/salt/salt/modules/smartos_nictagadm.py/vms/swapped operands of `in`