Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from Maddog2050/fix_driver_provider_default
Browse files Browse the repository at this point in the history
Fix the vagrant provider name if no value is defined or empty value provided

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
ansible-zuul[bot] committed Jun 12, 2020
2 parents 26a6a70 + 36b0e67 commit efb772c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion molecule_vagrant/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
platform_box_version: "{{ item.box_version | default(omit) }}"
platform_box_url: "{{ item.box_url | default(omit) }}"

provider_name: "{{ molecule_yml.driver.provider.name }}"
provider_name: "{{ molecule_yml.driver.provider.name | default(omit, true) }}"
provider_memory: "{{ item.memory | default(omit) }}"
provider_cpus: "{{ item.cpus | default(omit) }}"
provider_options: "{{ item.provider_options | default(omit) }}"
Expand Down
2 changes: 1 addition & 1 deletion molecule_vagrant/playbooks/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
vagrant:
instance_name: "{{ item.name }}"
platform_box: "{{ item.box | default(omit) }}"
provider_name: "{{ molecule_yml.driver.provider.name }}"
provider_name: "{{ molecule_yml.driver.provider.name | default(omit, true) }}"
provider_options: "{{ item.provider_options | default(omit) }}"
provider_raw_config_args: "{{ item.provider_raw_config_args | default(omit) }}"
force_stop: "{{ item.force_stop | default(true) }}"
Expand Down

0 comments on commit efb772c

Please sign in to comment.