X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Fhttpmsghandlers%2Fset_general_configuration_handler.go;h=2b2f074dd1dad1d0dd232c7f1e4315d5c92751d8;hb=7dbe77a33d8bc8308d9d12b12f1e75f8329a2d92;hp=851dab1c7909f8087599a8e0b943e26f7a2277ce;hpb=a07b8597afc9d063a7f37a376a5bcf29ba29b557;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 {