]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Make the empty string reset settings to their default value 1869/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 6 Sep 2023 07:14:10 +0000 (09:14 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 6 Sep 2023 09:02:59 +0000 (11:02 +0200)
commit5462f5e31c4223a001c2ed5aa8d44177fb8454fc
tree083338efafaa45800d1089cfc23db25628287a74
parent05eb7e590a57ae1959b9ecc1982bba21b0dddbca
Make the empty string reset settings to their default value

If the empty string is assigned, we should make sure the setting
is assigned its default value so let's make sure we return None in
that case after all

We also simplify the match callbacks to not take optional values
anymore. If the value is set to None, then we automatically fail
the match.
mkosi/config.py
tests/test_config.py