def add_definition(self, context, disk, config):
        shutil.copy(disk, self._repodir)
        definition_generator = DefinitionGenerator(disk, config)
        ovf = definition_generator.generate_ovf()
        with open("%s/ovf.ovf" % self._repodir, "w") as f:
            f.write(ovf)
        return definition_generator.generate_definition(context,
            self._address, self._port)
Adds a template definition to the repository
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/upload/repository.py/TransientRepository.add_definition