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

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

Returns informations about an instance.

It takes the information from the configuration file. Other informations of
an instance are taken from the live systems.

Args:
  instance: name of the instance, ex instance1.example.com

Returns:
  the instance object

Definition at line 370 of file config.py.

00370                                           :
    """Returns informations about an instance.

    It takes the information from the configuration file. Other informations of
    an instance are taken from the live systems.

    Args:
      instance: name of the instance, ex instance1.example.com

    Returns:
      the instance object

    """
    self._OpenConfig()
    self._ReleaseLock()

    if instance_name not in self._config_data.instances:
      return None

    return self._config_data.instances[instance_name]

  def AddNode(self, node):


Generated by  Doxygen 1.6.0   Back to index