Loading services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py +6 −19 Original line number Diff line number Diff line Loading @@ -228,11 +228,6 @@ class PublishServiceOperations(Resource): serviceapidescription = clean_empty( dict_to_camel_case(serviceapidescription_dict)) if res.status_code == 204: is_supported = serviceapidescription.get("supportedFeatures") and \ ServiceAPIDescription.return_supp_feat_dict( serviceapidescription["supportedFeatures"]).get("ApiStatusMonitoring") if is_supported: current_app.logger.info("Service unavailable") RedisEvent( "SERVICE_API_UNAVAILABLE", Loading @@ -240,14 +235,6 @@ class PublishServiceOperations(Resource): api_ids=[str(service_api_id)] ).send_event() else: status_message = "Service available" if serviceapidescription.get( "supportedFeatures") is None else "Service unavailable" current_app.logger.info(status_message) RedisEvent( "SERVICE_API_UNAVAILABLE", api_ids=[str(service_api_id)] ).send_event() return res except Exception as e: Loading Loading
services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py +6 −19 Original line number Diff line number Diff line Loading @@ -228,11 +228,6 @@ class PublishServiceOperations(Resource): serviceapidescription = clean_empty( dict_to_camel_case(serviceapidescription_dict)) if res.status_code == 204: is_supported = serviceapidescription.get("supportedFeatures") and \ ServiceAPIDescription.return_supp_feat_dict( serviceapidescription["supportedFeatures"]).get("ApiStatusMonitoring") if is_supported: current_app.logger.info("Service unavailable") RedisEvent( "SERVICE_API_UNAVAILABLE", Loading @@ -240,14 +235,6 @@ class PublishServiceOperations(Resource): api_ids=[str(service_api_id)] ).send_event() else: status_message = "Service available" if serviceapidescription.get( "supportedFeatures") is None else "Service unavailable" current_app.logger.info(status_message) RedisEvent( "SERVICE_API_UNAVAILABLE", api_ids=[str(service_api_id)] ).send_event() return res except Exception as e: Loading