From: Zbigniew Jędrzejewski-Szmek Date: Mon, 17 Apr 2023 10:07:02 +0000 (+0200) Subject: Fix display of password in summary X-Git-Tag: v15~247^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1446%2Fhead;p=thirdparty%2Fmkosi.git Fix display of password in summary We would skip reading the file and say "(default)"). --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 37cb834fc..e64b5ba54 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -995,7 +995,9 @@ def require_private_file(name: Path, description: str) -> None: def find_password(args: argparse.Namespace) -> None: - if not needs_build(args) or args.password is not None: + if args.password is not None: + return + if not (args.verb == Verb.summary or needs_build(args)): return try: