Skip to content

Commit

Permalink
podman: default the hostname to the name of the platform
Browse files Browse the repository at this point in the history
This was the case in the past (and is still the case for the Docker
driver), but was accidentally changed in an unrelated refactoring.

Fixes: e9d5649
  • Loading branch information
evgeni committed Oct 15, 2024
1 parent 1555b61 commit 10dfc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecule_plugins/podman/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
etc_hosts: "{{ item.etc_hosts | default(omit) }}"
executable: "{{ podman_exec }}"
expose: "{{ item.exposed_ports | default(omit) }}"
hostname: "{{ item.hostname | default(omit) }}"
hostname: "{{ item.hostname | default(item.name) }}"
image: "{{ item.pre_build_image | default(false) | ternary('', 'molecule_local/') }}{{ item.image }}"
ip: "{{ item.ip | default(omit) }}"
label:
Expand Down

0 comments on commit 10dfc7a

Please sign in to comment.