podman_compose: fix in-pod argparse type

If "bool" is provided as an argparse type it will only evaluate to false
if an empty string is provided. This lambda attempts to resolve this by
filtering for "1" or "true".

Signed-off-by: Randolph Sapp <res.sapp@gmail.com>
This commit is contained in:
Randolph Sapp 2023-06-16 01:32:39 -05:00 committed by Povilas Kanapickas
parent 58641f0545
commit c358d11078
1 changed files with 1 additions and 1 deletions

View File

@ -1927,7 +1927,7 @@ class PodmanCompose:
"--in-pod",
help="pod creation",
metavar="in_pod",
type=bool,
type=lambda x: x.lower() in ["1", "true"],
default=True,
)
parser.add_argument(