Logo Search packages:      
Sourcecode: ganeti version File versions  Download package

def lib::config::ConfigWriter::MarkInstanceDown (   self,
  instance_name 
)

Mark the status of an instance to down in the configuration.

Definition at line 335 of file config.py.

00335                                            :
    """Mark the status of an instance to down in the configuration.

    """
    self._OpenConfig()

    if instance_name not in self._config_data.instances:
      raise errors.ConfigurationError("Unknown instance '%s'" % instance_name)
    instance = self._config_data.instances[instance_name]
    instance.status = "down"
    self._WriteConfig()

  def GetInstanceList(self):


Generated by  Doxygen 1.6.0   Back to index