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

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

Remove the instance from the configuration.

Definition at line 307 of file config.py.

00307                                          :
    """Remove the instance from the configuration.

    """
    self._OpenConfig()

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

  def RenameInstance(self, old_name, new_name):


Generated by  Doxygen 1.6.0   Back to index