From bdff78dcba77fd1a7ebd09a0d6005d647974e08f Mon Sep 17 00:00:00 2001 From: Bas Zoetekouw Date: Thu, 21 Mar 2024 15:37:10 +0100 Subject: [PATCH] Ignore files generated by tests Signed-off-by: Bas Zoetekouw --- .gitignore | 2 ++ podman_compose.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 6621793..6d96ad9 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,8 @@ coverage.xml *.cover .hypothesis/ .pytest_cache/ +test-compose.yaml +test-compose-?.yaml # Translations *.mo diff --git a/podman_compose.py b/podman_compose.py index 73ec795..f005501 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -901,6 +901,8 @@ def get_net_args(compose, cnt): net_options.append(f"ip={ipv4}") if ipv6: net_options.append(f"ip={ipv6}") + if mac: + net_options.append(f"mac={mac}") if net_options: net_args.extend(["--network", f"{net_name}:" + ",".join(net_options)])