code: def _get_on_poweroff(dom):
      '''
      Return `on_poweroff` setting from the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.get_on_restart <domain>
      '''
      node = ElementTree.fromstring(get_xml(dom)).find('on_poweroff')
      return node.text if node is not None else 'f _get_on_poweroff(dom):
      '''
      Return `on_poweroff` setting from the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.get_on_restart <domain>
      '''
      node = ElementTree.fromstring(get_xml(dom)).find('on_poweroff')
      return node.text if node is not None else ''
docs: Return `on_poweroff` setting from the named vm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.get_on_restart <domain>