@classmethod
  def DoMaintenance(cls, role):
    """Maintain the instance list.

    """
    if role in constants.CONFD_NODE_ROLE_OFFLINE:
      inst_running = cls.GetRunningInstances()
      cls.ShutdownInstances(inst_running)
      drbd_running = cls.GetUsedDRBDs()
      cls.ShutdownDRBD(drbd_running)
    else:
      logging.debug("Not doing anything for role %s", role)
dataset/ETHPy150Open ganeti/ganeti/lib/watcher/nodemaint.py/NodeMaintenance.DoMaintenance/operator `==` -> `in`