From b6eba2a96d033b28ffb766f9e9901bc09802acb0 Mon Sep 17 00:00:00 2001 From: Nicolas de Pineda Date: Tue, 21 Jan 2025 09:42:31 +0100 Subject: [PATCH] fix: plat_cache.json not being read correctly https://telecominfraproject.atlassian.net/browse/WIFI-14349 Summary of changes: - Resolved an issue where a string field was being read as JSON, causing the output to be incorrectly surrounded by quotation marks. Signed-off-by: Nicolas de Pineda --- src/CapabilitiesCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CapabilitiesCache.h b/src/CapabilitiesCache.h index 6658a0f1..b0355ca2 100644 --- a/src/CapabilitiesCache.h +++ b/src/CapabilitiesCache.h @@ -111,7 +111,7 @@ namespace OpenWifi { i >> cache; for (const auto &[Type, Platform] : cache.items()) { - Platforms_[Type] = Poco::toLower(to_string(Platform)); + Platforms_[Type] = Poco::toLower(Platform.get()); } } catch (...) { }