@_ensure_exists
def pid(name):
    '''
    Returns the PID of a container

    name
        Container name

    CLI Example:

    .. code-block:: bash

        salt myminion nspawn.pid arch1
    '''
    try:
        return int(info(name).get('PID'))
    except (TypeError, __HOLE__) as exc:
        raise CommandExecutionError(
            'Unable to get PID for container \'{0}\': {1}'.format(name, exc)
        )
dataset/ETHPy150Open saltstack/salt/salt/modules/nspawn.py/pid