Merge pull request #229 from sshnaidm/podman

Allow podman connections in synchronize module

SUMMARY


ISSUE TYPE


Feature Pull Request
For fixing issues with molecule: ansible-community/molecule-podman#45

COMPONENT NAME

synchronize
ADDITIONAL INFORMATION


Add podman connections as it's done with buildah and docker.

Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: Sergey <None>
Reviewed-by: Sumit Jaiswal <sjaiswal@redhat.com>
Reviewed-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
ansible-zuul[bot] 2021-07-24 04:58:24 +00:00 committed by GitHub
commit 1ebacfb195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- synchronize - add ``community.podman.podman`` to the list of supported connection plugins (https://github.com/ansible-community/molecule-podman/issues/45).

View file

@ -66,7 +66,15 @@ class ActionModule(ActionBase):
return path
# If using docker or buildah, do not add user information
if self._remote_transport not in ['docker', 'community.general.docker', 'community.docker.docker', 'buildah', 'containers.podman.buildah'] and user:
if self._remote_transport not in [
'docker',
'community.general.docker',
'community.docker.docker',
'buildah',
'containers.podman.buildah',
'podman',
'containers.podman.podman'
] and user:
user_prefix = '%s@' % (user, )
if self._host_is_ipv6_address(host):