From c9ef5706dafd43c997838d84865c0d91897416ac Mon Sep 17 00:00:00 2001 From: Carlos Manso <carlos.manso@cttc.es> Date: Fri, 29 Sep 2023 16:14:08 +0200 Subject: [PATCH] cleanup --- .../service/rest_server/nbi_plugins/etsi_bwm/Resources.py | 5 +++-- .../service/rest_server/nbi_plugins/etsi_bwm/__init__.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compute/service/rest_server/nbi_plugins/etsi_bwm/Resources.py b/src/compute/service/rest_server/nbi_plugins/etsi_bwm/Resources.py index 09819ba10..38534b754 100644 --- a/src/compute/service/rest_server/nbi_plugins/etsi_bwm/Resources.py +++ b/src/compute/service/rest_server/nbi_plugins/etsi_bwm/Resources.py @@ -12,13 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +import copy +from common.Constants import DEFAULT_CONTEXT_NAME from flask_restful import Resource, request from context.client.ContextClient import ContextClient from service.client.ServiceClient import ServiceClient from .Tools import ( format_grpc_to_json, grpc_context_id, grpc_service_id, bwInfo_2_service, service_2_bwInfo) -import copy -from common.Constants import DEFAULT_CONTEXT_NAME + class _Resource(Resource): diff --git a/src/compute/service/rest_server/nbi_plugins/etsi_bwm/__init__.py b/src/compute/service/rest_server/nbi_plugins/etsi_bwm/__init__.py index 61b37b7b4..8b81a4057 100644 --- a/src/compute/service/rest_server/nbi_plugins/etsi_bwm/__init__.py +++ b/src/compute/service/rest_server/nbi_plugins/etsi_bwm/__init__.py @@ -13,7 +13,7 @@ # limitations under the License. from compute.service.rest_server.RestServer import RestServer -from .Resources import (BwInfo, BwInfoId) +from .Resources import BwInfo, BwInfoId URL_PREFIX = '/bwm/v1' -- GitLab