def lock():
    cmd = '/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend'
    call = __salt__['cmd.run_all'](
        cmd,
        output_loglevel='debug',
        python_shell=False
    )
    _check_cmd(call)

    return True
Returns the list of VIFs for a given instance.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_desktop.py/lock--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/contrib/virtual_interfaces.py/ServerVirtualInterfaceController.index