mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-06 21:58:02 +00:00
Detecting duplicate names.
This commit is contained in:
@@ -88,10 +88,11 @@ namespace OpenWifi {
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
std::string Error;
|
||||
if (!NewConfig.Configuration.empty())
|
||||
if (!NewConfig.Configuration.empty()) {
|
||||
std::string Error;
|
||||
if(!ValidateUCentralConfiguration(NewConfig.Configuration, Error)) {
|
||||
return BadRequest(RESTAPI::Errors::ConfigBlockInvalid);
|
||||
}
|
||||
Existing.Configuration = NewConfig.Configuration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user