Commit a1357f94 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Optical controller:

-Pre-merge cleanup
parent a6adad8b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -300,7 +300,9 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
            else:
                LOGGER.debug('Using existing optical band')
            if reply_txt is not None:
                optical_reply = adapt_reply(devices, _service, reply_json, context_uuid_x, topology_uuid_x, optical_band_txt)
                optical_reply = adapt_reply(
                    devices, _service, reply_json, context_uuid_x, topology_uuid_x, optical_band_txt
                )
                LOGGER.info('optical_reply={:s}'.format(
                    grpc_message_to_json_string(optical_reply)))

+1 −1
Original line number Diff line number Diff line
@@ -124,8 +124,8 @@ class TaskExecutor:
        myid.opticalconfig_uuid = device.device_id.device_uuid.uuid
        opticalconfig = OpticalConfig()
        setting = settings.value if settings else ""
        new_config = {}

        new_config = {}
        try:
            result = self._context_client.SelectOpticalConfig(myid)
            new_config = json.loads(result.config)