Skip to content
Snippets Groups Projects
Unverified Commit acc989de authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

commands: getattr autoinstall (MR 2461)

args.autoinstall attribute might not exist, use getattr like for others,
and add a fixme about the default value...

Fixes: postmarketOS/pmbootstrap#2476


Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent 9f5642fd
No related branches found
No related tags found
1 merge request!2461commands: getattr autoinstall
Pipeline #209053 passed
......@@ -68,7 +68,9 @@ def run_command(args: PmbArgs):
case "flasher":
command = Flasher(
args.action_flasher,
args.autoinstall,
# FIXME: defaults copied from pmb/helpers/arguments.py
# we should have these defaults defined in one place!
getattr(args, "autoinstall", True),
getattr(args, "cmdline", None),
args.flash_method,
getattr(args, "no_reboot", None),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment