Fix systemd_nspawn_user_args override

This commit is contained in:
Jip-Hop 2024-07-09 14:41:35 +02:00
parent 9690a5a430
commit 32843daf49
1 changed files with 1 additions and 1 deletions

View File

@ -1319,7 +1319,7 @@ def create_jail(**kwargs):
if ( if (
value is not None value is not None
# String, non-empty list of args or int # String, non-empty list of args or int
and (len(value) or isinstance(value, int)) and (isinstance(value, int) or len(value))
and value is not config.my_get(option, None) and value is not config.my_get(option, None)
): ):
# TODO: this will wipe all systemd_nspawn_user_args from the template... # TODO: this will wipe all systemd_nspawn_user_args from the template...