Skip to content

Commit

Permalink
Fix systemd_nspawn_user_args override
Browse files Browse the repository at this point in the history
  • Loading branch information
Jip-Hop committed Jul 9, 2024
1 parent b8ce9c4 commit d0a532f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jlmkr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit d0a532f

Please sign in to comment.