Commit 206e0f56 authored by eric pellegrini's avatar eric pellegrini

the vm_name is now part of the Jinja2 environment

parent 8c6c7e46
......@@ -22,7 +22,7 @@ class PackerTemplate:
"""Constructor
"""
self._name = name
self._name = name
self._packages_base_dir = packages_base_dir
self._templates_base_dir = templates_base_dir
......@@ -70,6 +70,8 @@ class PackerTemplate:
return
self._environment = {}
# The vm_name is set as part of the jinja environment
self._environment["vm_name"] = self._name
with open(environment_file, "r") as fin:
env = yaml.safe_load(fin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment