Merge pull request #41 from Telecominfraproject/WIFI-10070

Fix: https://telecominfraproject.atlassian.net/browse/WIFI-10070
This commit is contained in:
Stephane Bourque
2022-07-08 22:11:59 -07:00
committed by GitHub
2 changed files with 51 additions and 49 deletions

2
build
View File

@@ -1 +1 @@
137
138

View File

@@ -153,6 +153,7 @@ namespace OpenWifi {
}
}
try {
std::set<std::string> Sections;
for (const auto &i: Config_) {
Poco::JSON::Parser P;
@@ -188,7 +189,8 @@ namespace OpenWifi {
ReplaceVariablesInObject(OriginalSection, ExpandedSection);
Configuration->set(SectionName, ExpandedSection);
} else {
std::cout << " --- unknown element type --- " << O->get(SectionName).toString() << std::endl;
std::cout << " --- unknown element type --- " << O->get(SectionName).toString()
<< std::endl;
}
} else {
if (Explain_) {
@@ -203,10 +205,10 @@ namespace OpenWifi {
}
}
}
if(Config_.empty())
return false;
} catch (...) {
return true;
}
return !Config_.empty();
}
static bool DeviceTypeMatch(const std::string &DeviceType, const Types::StringVec & Types) {