code: def list_active_vms(**kwargs):
      '''
      Return a list of names for active virtual machine on the minion
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.list_active_vms
      '''
      vms = []
      conn = __get_conn(**kwargs)
      for dom in _get_domain(conn, iterable=True, inactive=False):
          vms.append(dom.name())
      conn.close()
      return vmf list_active_vms(**kwargs):
      '''
      Return a list of names for active virtual machine on the minion
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.list_active_vms
      '''
      vms = []
      conn = __get_conn(**kwargs)
      for dom in _get_domain(conn, iterable=True, inactive=False):
          vms.append(dom.name())
      conn.close()
      return vms
docs: Return a list of names for active virtual machine on the minion
  
      :param connection: libvirt connection URI, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param username: username to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
      :param password: password to connect with, overriding defaults
  
          .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.list_active_vms