浏览代码

get `--container` arg working

Florian Apolloner 1 月之前
父节点
当前提交
d44fb24670
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      borgmatic/config/arguments.py

+ 3 - 3
borgmatic/config/arguments.py

@@ -146,9 +146,9 @@ def prepare_arguments_for_config(global_arguments, schema):
         keys = tuple(argument_name.split('.'))
         keys = tuple(argument_name.split('.'))
         option_type = type_for_option(schema, keys)
         option_type = type_for_option(schema, keys)
 
 
-        # The argument doesn't correspond to any option in the schema, so ignore it. It's
-        # probably a flag that borgmatic has on the command-line but not in configuration.
-        if option_type is None:
+        # The argument doesn't correspond to any option in the schema, or it is a complex argument, so ignore it.
+        # It's probably a flag that borgmatic has on the command-line but not in configuration.
+        if option_type in {'object', None}:
             continue
             continue
 
 
         prepared_values.append(
         prepared_values.append(