Skip to content

Commit

Permalink
resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dinadins committed Dec 21, 2024
1 parent c5ce906 commit b896277
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/molecule_plugins/vagrant/modules/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@
{% if instance.box_url %}
{{ 'c.vm.box_url = "{}"'.format(instance.box_url) | safe }}
{% endif %}
{% if instance.box_architecture %}
{{ 'c.vm.box_architecture = "{}"'.format(instance.box_architecture) | safe }}
{% endif %}
{% if instance.box_download_checksum %}
{{ 'c.vm.box_download_checksum = "{}"'.format(instance.box_download_checksum) | safe }}
{% endif %}
Expand Down Expand Up @@ -575,7 +578,9 @@ def _get_config(self):
def _write_vagrantfile(self):
instances = self._get_vagrant_config_dict()
j_env = jinja2.Environment(
autoescape=True, trim_blocks=True, lstrip_blocks=True,
autoescape=True,
trim_blocks=True,
lstrip_blocks=True,
)
t = j_env.from_string(VAGRANTFILE_TEMPLATE)
template = t.render(
Expand Down Expand Up @@ -649,6 +654,7 @@ def _get_instance_vagrant_config_dict(self, instance):
"box": instance.get("box", self._module.params["default_box"]),
"box_version": instance.get("box_version"),
"box_url": instance.get("box_url"),
"box_architecture": instance.get("box_architecture"),
"box_download_checksum": checksum,
"box_download_checksum_type": checksum_type,
"provider": self._module.params["provider_name"],
Expand Down Expand Up @@ -706,6 +712,7 @@ def main():
"platform_box": {"type": "str", "required": False},
"platform_box_version": {"type": "str"},
"platform_box_url": {"type": "str"},
"platform_box_architecture": {"type": "str"},
"platform_box_download_checksum": {"type": "str"},
"platform_box_download_checksum_type": {"type": "str"},
"provider_memory": {"type": "int", "default": 512},
Expand Down

0 comments on commit b896277

Please sign in to comment.