diff --git a/opennebula_api/models.py b/opennebula_api/models.py index 6d9716b4..92d5c568 100644 --- a/opennebula_api/models.py +++ b/opennebula_api/models.py @@ -427,8 +427,8 @@ class OpenNebulaManager(): template_id = int(template_id) try: template_pool = self._get_template_pool() - if template_id in settings.UPDATED_TEMPLATES.keys(): - template_id = settings.UPDATED_TEMPLATES[template_id] + if template_id in settings.UPDATED_TEMPLATES_DICT.keys(): + template_id = settings.UPDATED_TEMPLATES_DICT[template_id] return template_pool.get_by_id(template_id) except Exception as ex: logger.debug("Template Id we are looking for : %s" % template_id)