Skip to content

Commit e194029

Browse files
authored
nidigital: Update GRPC_SERVICE_INTERFACE_NAME to use correct gRPC package name (#1940)
* nidigital: Fix GRPC_SERVICE_INTERFACE_NAME * nidigital: Update CHANGELOG.md Signed-off-by: Brad Keryan <[email protected]> --------- Signed-off-by: Brad Keryan <[email protected]>
1 parent a118b2e commit e194029

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ All notable changes to this project will be documented in this file.
7373
* ### `nidigital` (NI-Digital Pattern Driver)
7474
* #### Added
7575
* #### Changed
76+
* Update `GRPC_SERVICE_INTERFACE_NAME` to use the correct gRPC package name (`nidigitalpattern_grpc`).
7677
* #### Removed
7778
* ### `nidmm` (NI-DMM)
7879
* #### Added

build/templates/grpc_session_options.py.mako

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ ${template_parameters['encoding_tag']}
22
# This file was generated
33
<%
44
config = template_parameters['metadata'].config
5+
module_name = config['module_name']
6+
proto_name = config.get('proto_name', module_name)
57
%>\
68

79
from enum import IntEnum
810

911

1012
# This constant specifies the gRPC package and service used by this API.
1113
# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface.
12-
GRPC_SERVICE_INTERFACE_NAME = '${config["module_name"]}_grpc.${config["grpc_service_class_prefix"]}'
14+
GRPC_SERVICE_INTERFACE_NAME = '${proto_name}_grpc.${config["grpc_service_class_prefix"]}'
1315

1416
# This constant specifies the API license key required by the NI gRPC Device Server that comes with
1517
# MeasurementLink 2023 Q1.

generated/nidigital/nidigital/grpc_session_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# This constant specifies the gRPC package and service used by this API.
88
# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface.
9-
GRPC_SERVICE_INTERFACE_NAME = 'nidigital_grpc.NiDigital'
9+
GRPC_SERVICE_INTERFACE_NAME = 'nidigitalpattern_grpc.NiDigital'
1010

1111
# This constant specifies the API license key required by the NI gRPC Device Server that comes with
1212
# MeasurementLink 2023 Q1.

0 commit comments

Comments
 (0)