mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Allow specify podman_network options MTU and VLAN separately (#435)
Before that it didn't work when only one option set. Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
acedce8b4b
commit
25b9516488
2 changed files with 46 additions and 3 deletions
|
|
@ -253,9 +253,10 @@ class PodmanNetworkModuleParams:
|
|||
|
||||
def addparam_opt(self, c):
|
||||
for opt in self.params['opt'].items():
|
||||
c += ['--opt',
|
||||
b"=".join([to_bytes(k, errors='surrogate_or_strict')
|
||||
for k in opt])]
|
||||
if opt[1] is not None:
|
||||
c += ['--opt',
|
||||
b"=".join([to_bytes(k, errors='surrogate_or_strict')
|
||||
for k in opt])]
|
||||
return c
|
||||
|
||||
def addparam_disable_dns(self, c):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue