[grubcfg] Minor update from PR feedback

This commit is contained in:
dalto 2022-11-05 16:52:50 -05:00
parent 152895b48c
commit 2ea11d4d63

View File

@ -254,7 +254,7 @@ def modify_grub_default(partitions, root_mount_point, distributor):
if always_use_defaults or overwrite or not os.path.exists(default_grub): if always_use_defaults or overwrite or not os.path.exists(default_grub):
if "defaults" in libcalamares.job.configuration: if "defaults" in libcalamares.job.configuration:
for key, value in libcalamares.job.configuration["defaults"].items(): for key, value in libcalamares.job.configuration["defaults"].items():
if value.__class__.__name__ == "bool": if isinstance(value, bool):
if value: if value:
escaped_value = "true" escaped_value = "true"
else: else: