code: 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, ValueError) as exc:
          raise CommandExecutionError(
              'Unable to get PID for container \'{0}\': {1}'.format(name, exc)
          f 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, ValueError) as exc:
          raise CommandExecutionError(
              'Unable to get PID for container \'{0}\': {1}'.format(name, exc)
          )
docs: Returns the PID of a container
  
      name
          Container name
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion nspawn.pid arch1