X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=E2Manager%2Fhandlers%2Fhttpmsghandlers%2Fset_general_configuration_handler.go;h=2b2f074dd1dad1d0dd232c7f1e4315d5c92751d8;hb=db0380732b248c2343c95cdd56b33a50b3383d66;hp=851dab1c7909f8087599a8e0b943e26f7a2277ce;hpb=ab8f039d2f4288ceba5d0ce6c95172210fe60776;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/httpmsghandlers/set_general_configuration_handler.go b/E2Manager/handlers/httpmsghandlers/set_general_configuration_handler.go index 851dab1..2b2f074 100644 --- a/E2Manager/handlers/httpmsghandlers/set_general_configuration_handler.go +++ b/E2Manager/handlers/httpmsghandlers/set_general_configuration_handler.go @@ -51,9 +51,14 @@ func (h *SetGeneralConfigurationHandler) Handle(request models.Request) (models. return nil, e2managererrors.NewRnibDbError() } + h.logger.Infof("#SetGeneralConfigurationHandler.Handle - got general configuration from rnib - enableRic: %t", existingConfig.EnableRic) + if existingConfig.EnableRic != configuration.EnableRic { existingConfig.EnableRic = configuration.EnableRic + + h.logger.Infof("#SetGeneralConfigurationHandler.Handle - save general configuration to rnib: %+v", *existingConfig) + err := h.rnibDataService.SaveGeneralConfiguration(existingConfig) if err != nil {