forked from Mirror/pmbootstrap
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"
|
_dtb = "-dtb"
|
||||||
|
|
||||||
_no_reboot = ""
|
_no_reboot = ""
|
||||||
if hasattr(args,'no_reboot') and args.no_reboot:
|
if getattr(args, 'no_reboot', False):
|
||||||
_no_reboot = "--no-reboot"
|
_no_reboot = "--no-reboot"
|
||||||
|
|
||||||
_resume = ""
|
_resume = ""
|
||||||
if hasattr(args,'resume') and args.resume:
|
if getattr(args,'resume', False):
|
||||||
_resume = "--resume"
|
_resume = "--resume"
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue