Bug 2097428
| Summary: | podman-compose traceback if env var value contains = | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Barry Scott <barry> |
| Component: | podman-compose | Assignee: | Gwyn Ciesla <gwync> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | gwync |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | podman-compose-1.0.3-6.fc36 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 01:16:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
FEDORA-2022-fc3b52531e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fc3b52531e FEDORA-2022-fc3b52531e has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-fc3b52531e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fc3b52531e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-fc3b52531e has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: I ran a build that works with docker and hit a traceback with a simple fix. I symlinked docker and docker-compose to podman and podman-compose. There is env var that is of the form A=B=C which needs this patch to allow podman-compose to work: $ diff -u /usr/lib/python3.10/site-packages/podman_compose.py~ /usr/lib/python3.10/site-packages/podman_compose.py --- /usr/lib/python3.10/site-packages/podman_compose.py~ 2022-06-14 14:16:45.825406742 +0100 +++ /usr/lib/python3.10/site-packages/podman_compose.py 2022-06-14 14:16:45.825406742 +0100 @@ -1502,7 +1502,7 @@ if args.workdir: cnt["working_dir"] = args.workdir env = dict(cnt.get('environment', {})) if args.env: - additional_env_vars = dict(map(lambda each: each.split('='), args.env)) + additional_env_vars = dict(map(lambda each: each.split('=', 1), args.env)) env.update(additional_env_vars) cnt['environment'] = env if not args.service_ports: With this fix the build worked as expected.