Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13268
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Jan 4, 2024
1 parent 6a35dc9 commit 19497b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/storage/storage_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,15 @@ namespace OpenWifi {

bool Storage::CompleteDeviceConfigurationChange(Poco::Data::Session & Session, std::string & SerialNumber) {
try {

GWObjects::Device D;
if (!GetDevice(SerialNumber, D))
return false;

if(D.pendingConfiguration.empty())
if(D.pendingConfiguration.empty()) {
std::cout << "No pending configuration for " << SerialNumber << std::endl;
return true;
}
D.Configuration = D.pendingConfiguration;
D.pendingConfiguration.clear();
D.UUID = D.pendingUUID;
Expand Down

0 comments on commit 19497b8

Please sign in to comment.