@staticmethod
  def GetRunningInstances():
    hyp_list = ssconf.SimpleStore().GetHypervisorList()
    hvparams = ssconf.SimpleStore().GetHvparams()
    results = []
    for hv_name in hyp_list:
      try:
        hv = hypervisor.GetHypervisor(hv_name)
        ilist = hv.ListInstances(hvparams=hvparams)
        results.extend([(iname, hv_name) for iname in ilist])
      except: # pylint: disable=W0702
        logging.error("Error while listing instances for hypervisor %s",
                      hv_name, exc_info=True)
    return results
Set-theoretic intersection.
dataset/ETHPy150Open ganeti/ganeti/lib/watcher/nodemaint.py/NodeMaintenance.GetRunningInstances--crossover with--dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.__mul__