make dataset enable idempotent

This commit is contained in:
Robin Müller 2023-03-14 16:49:46 +01:00
parent 0973ba6bf2
commit b6b9d1d790
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -718,7 +718,7 @@ ReturnValue_t LocalDataPoolManager::togglePeriodicGeneration(sid_t sid, bool ena
if ((LocalPoolDataSetAttorney::getReportingEnabled(*dataSet) and enable) or
(not LocalPoolDataSetAttorney::getReportingEnabled(*dataSet) and not enable)) {
return REPORTING_STATUS_UNCHANGED;
return returnvalue::OK;
}
LocalPoolDataSetAttorney::setReportingEnabled(*dataSet, enable);