From d0a532f0dc6b19b9ba034cf4a647955bd31c448d Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:41:16 +0200 Subject: [PATCH] Fix systemd_nspawn_user_args override --- jlmkr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index ce917bb..bb27cad 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -1318,7 +1318,8 @@ def create_jail(**kwargs): value = kwargs.pop(option) if ( value is not None - and len(str(value)) + # String, non-empty list of args or int + and (len(value) or isinstance(value, int)) and value is not config.my_get(option, None) ): # TODO: this will wipe all systemd_nspawn_user_args from the template...