mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Merge pull request #41 from Telecominfraproject/WIFI-10070
Fix: https://telecominfraproject.atlassian.net/browse/WIFI-10070
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user