Skip to content

Commit 6529602

Browse files
committed
fix: filter False fields, ref dnomd343#1
1 parent ee9b4d1 commit 6529602

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def __init__(self, args: list[str], config: dict[str, Any],
9595
cli_opts = self.__load_from_args(args)
9696
self.__debug('Command line options', cli_opts)
9797

98-
self.__opts = env_opts | cfg_opts | cli_opts
98+
options = env_opts | cfg_opts | cli_opts
99+
self.__opts = {x: y for x, y in options.items() if y != False}
99100
self.__debug('Bootstrap final options', self.__opts)
100101

101102
def __load_from_args(self, raw_args: list[str]) -> dict[str, Any]:

0 commit comments

Comments
 (0)