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

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

Mark the instance status to up in the config.

Definition at line 294 of file config.py.

00294                                          :
    """Mark the instance status to up in the config.

    """
    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 = "up"
    self._WriteConfig()

  def RemoveInstance(self, instance_name):


Generated by  Doxygen 1.6.0   Back to index