podman-compose/newsfragments/compose_down_inexistent_service.bugfix
Rafael Guterres Jeffman d4760712b7 Don't raise exception on inexistent services in 'down' command
When running 'podman-compose down <service>', if service is not part of
the compose, a KeyError exception is raised in function 'get_excluded'.

By only allowing evaluation of services that exist in the compose
provides a cleaner and gentler exit for this case.

Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-03-05 15:49:52 -03:00

2 lines
83 B
Plaintext

- Fixed KeyError in case podman-compose down was called with an inexistent service