From bedfb00e06cc1faf2c253c919a6c218a35b2f5dc Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sun, 25 Feb 2024 19:14:05 +0100 Subject: [PATCH] Config inheritance fixes --- npbackup/configuration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npbackup/configuration.py b/npbackup/configuration.py index 6eb7d60..1b8e076 100644 --- a/npbackup/configuration.py +++ b/npbackup/configuration.py @@ -525,8 +525,9 @@ def get_repo_config( if not isinstance(_grp_conf, list): _grp_conf = [_grp_conf] for _grp_conf_item in _grp_conf: - if v in _grp_conf_item: + if v == _grp_conf_item: _config_inheritance.s(f"{key}.{v}", True) + break else: _config_inheritance.s(f"{key}.{v}", False) else: @@ -562,8 +563,9 @@ def get_repo_config( if not isinstance(_grp_conf, list): _grp_conf = [_grp_conf] for _grp_conf_item in _grp_conf: - if v in _grp_conf_item: + if v == _grp_conf_item: _config_inheritance.s(f"{key}.{v}", True) + break else: _config_inheritance.s(f"{key}.{v}", False) else: