def AddInstance(self, instance, _ec_id, replace=False):
    if not isinstance(instance, objects.Instance):
      raise errors.ProgrammerError("Invalid type passed to AddInstance")

    instance.serial_no = 1

    utils.SimpleRetry(True, self._wconfd.AddInstance, 0.1, 30,
                      args=[instance.ToDict(),
                            self._GetWConfdContext(),
                            replace])
    self.OutDate()
>>> from lxml import etree as ET
dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter.AddInstance--crossover with--dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/core.py/Updatecheck_negative