Fix variable name

This commit is contained in:
PCoder 2020-05-25 11:33:58 +05:30
parent a665dbf9c8
commit 17a8efb0b6

View file

@ -427,8 +427,8 @@ class OpenNebulaManager():
template_id = int(template_id) template_id = int(template_id)
try: try:
template_pool = self._get_template_pool() template_pool = self._get_template_pool()
if template_id in settings.UPDATED_TEMPLATES.keys(): if template_id in settings.UPDATED_TEMPLATES_DICT.keys():
template_id = settings.UPDATED_TEMPLATES[template_id] template_id = settings.UPDATED_TEMPLATES_DICT[template_id]
return template_pool.get_by_id(template_id) return template_pool.get_by_id(template_id)
except Exception as ex: except Exception as ex:
logger.debug("Template Id we are looking for : %s" % template_id) logger.debug("Template Id we are looking for : %s" % template_id)