Skip to content

Fix external network name: key being ignored in get_net_args_from_networks() - #1552

Open
mokibit wants to merge 1 commit into
containers:mainfrom
mokibit:fix-external-network-name
Open

Fix external network name: key being ignored in get_net_args_from_networks()#1552
mokibit wants to merge 1 commit into
containers:mainfrom
mokibit:fix-external-network-name

Conversation

@mokibit

@mokibit mokibit commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

When external: name: custom-network was used, get_net_args_from_networks() checked isinstance(is_ext, str) instead of isinstance(is_ext, dict), so the dict value was discarded and podman-compose looked up the auto-prefixed name instead of the explicitly provided one.

Fixes #1137.

…etworks()

When `external: name: custom-network` was used,
`get_net_args_from_networks()` checked `isinstance(is_ext, str)` instead
of `isinstance(is_ext, dict)`, so the dict value was discarded and
`podman-compose` looked up the auto-prefixed name instead of the
explicitly provided one.

Signed-off-by: Monika Kairaityte <monika@kibit.lt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Second podman network creation fails with normal name, already prepended in config with podman_files_ it works, but again adds podman_files_.

1 participant