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:
parent
58641f0545
commit
c358d11078
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue