mirror of
https://github.com/moby/moby.git
synced 2026-07-11 18:13:57 +00:00
Commite7d75c8db7fixed validation of "host" mode values, but also introduced a regression for validating "container:" mode PID-modes. PID-mode implemented a stricter validation than the other options and, unlike the other options, did not accept an empty container name/ID. This feature was originally implemented infb43ef649b, added some some integration tests (but no coverage for this case), and the related changes in the API types did not have unit-tests. While a later change (d4aec5f0a6) added a test for the `--pid=container:` (empty name) case, that test was later migrated to the CLI repository, as it covered parsing the flag (and validating the result). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>