From 83dc9dcb5f1f72a6db075e125f8b9cb92fa06204 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 23 Oct 2021 09:24:05 -0500 Subject: [PATCH] fix(config): Overlay default/overrides with type-config --- src/policy.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/policy.rs b/src/policy.rs index 5c85e83..87787c8 100644 --- a/src/policy.rs +++ b/src/policy.rs @@ -194,7 +194,11 @@ impl<'s> ConfigEngine<'s> { } } - let type_config = self.init_file_config(type_engine.engine); + let mut engine = default.clone(); + engine.update(&type_engine.engine); + engine.update(&overrides); + + let type_config = self.init_file_config(engine); types.insert(type_name, type_config); } default.update(&overrides);