mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 11:29:46 +03:00
pmb.flasher.variables: use getattr instead of hasattr (MR 2232)
This commit is contained in:
parent
cc50d8956b
commit
03a59287dc
1 changed files with 2 additions and 2 deletions
|
@ -63,11 +63,11 @@ def variables(args, flavor, method):
|
|||
_dtb = "-dtb"
|
||||
|
||||
_no_reboot = ""
|
||||
if hasattr(args,'no_reboot') and args.no_reboot:
|
||||
if getattr(args, 'no_reboot', False):
|
||||
_no_reboot = "--no-reboot"
|
||||
|
||||
_resume = ""
|
||||
if hasattr(args,'resume') and args.resume:
|
||||
if getattr(args,'resume', False):
|
||||
_resume = "--resume"
|
||||
|
||||
vars = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue