Commit 0e36b542 authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent d6e88844
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -241,8 +241,6 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
        for config_rule in request.service_config.config_rules:
            service.service_config.config_rules.add().CopyFrom(config_rule) # pylint: disable=no-member

        LOGGER.debug('[confrul] service={:s}'.format(grpc_message_to_json_string(service)))

        service_id_with_uuids = context_client.SetService(service)

        # PathComp requires endpoints, constraints and config rules
@@ -328,9 +326,6 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
                tasks_scheduler.compose_from_pathcompreply(
                    optical_reply, is_delete=False)
        else:
            LOGGER.debug('[case2]' )
            LOGGER.debug(f'[case2] {len(service_with_uuids.service_endpoint_ids)}')
            LOGGER.debug(f'[case2] {num_expected_endpoints}')

            if len(service_with_uuids.service_endpoint_ids) >= num_expected_endpoints:
                pathcomp_request = PathCompRequest()
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ def get_service_handler_class(
        tapi_lsp_device_uuid = service.service_config.config_rules[0].tapi_lsp.endpoint_id.device_id.device_uuid.uuid
        for device in connection_devices.values():
            if device.name == tapi_lsp_device_uuid:
                LOGGER.debug('Asignando driver del equipo %s: %s', device.name, device.device_drivers)
                LOGGER.debug('Device(%s) supported drivers: %s', device.name, device.device_drivers)
                common_device_drivers = device.device_drivers
    else:
        for device in connection_devices.values():
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.