From ef2d99a1b99bed8765180c838cd9d39a612baa49 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Tue, 4 Jun 2019 12:47:57 +0300 Subject: [PATCH] Fix resolve configurables --- components/common/cpp/include/ftl/configuration.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/cpp/include/ftl/configuration.hpp b/components/common/cpp/include/ftl/configuration.hpp index 3387cb815..9f8c6e0fd 100644 --- a/components/common/cpp/include/ftl/configuration.hpp +++ b/components/common/cpp/include/ftl/configuration.hpp @@ -103,7 +103,7 @@ T *ftl::config::create(json_t &link, ARGS ...args) { template <typename T, typename... ARGS> T *ftl::config::create(ftl::Configurable *parent, const std::string &name, ARGS ...args) { - nlohmann::json &entity = parent->getConfig()[name]; + nlohmann::json &entity = ftl::config::resolve(parent->getConfig()[name]); if (entity.is_object()) { if (!entity["$id"].is_string()) { -- GitLab