mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
pod: Support passing multiple networks with params (#553)
Similar to #472, but for pods. there is also support there Signed-off-by: Benjamin Schubert <contact@benschubert.me>
This commit is contained in:
parent
1bfa6396a5
commit
7c06ddec3b
1 changed files with 4 additions and 0 deletions
|
|
@ -213,6 +213,10 @@ class PodmanPodModuleParams:
|
|||
return c + ['--name', self.params['name']]
|
||||
|
||||
def addparam_network(self, c):
|
||||
if LooseVersion(self.podman_version) >= LooseVersion('4.0.0'):
|
||||
for net in self.params['network']:
|
||||
c += ['--network', net]
|
||||
return c
|
||||
return c + ['--network', ",".join(self.params['network'])]
|
||||
|
||||
def addparam_network_aliases(self, c):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue