Skip to content

Commit e22bf9e

Browse files
build id in the previous pr
1 parent 370c1dc commit e22bf9e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ansys/geometry/core/_grpc/_services/v1/components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def create(self, **kwargs) -> dict: # noqa: D102
6666
components=[
6767
CreateComponentData(
6868
name=kwargs["name"],
69-
parent_id=kwargs["parent_id"],
70-
template_id=kwargs["template_id"],
69+
parent_id=build_grpc_id(kwargs["parent_id"]),
70+
template_id=build_grpc_id(kwargs["template_id"]),
7171
instance_name=kwargs["instance_name"],
7272
)
7373
]

src/ansys/geometry/core/_grpc/_services/v1/coordinate_systems.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import grpc
2525

26+
from ansys.geometry.core._grpc._services.v1.conversions import build_grpc_id
2627
from ansys.geometry.core.errors import protect_grpc
2728

2829
from ..base.coordinate_systems import GRPCCoordinateSystemService
@@ -61,7 +62,7 @@ def create(self, **kwargs) -> dict: # noqa: D102
6162
request = CreateRequest(
6263
request_data=[
6364
CreateRequestData(
64-
parent_id=kwargs["parent_id"],
65+
parent_id=build_grpc_id(kwargs["parent_id"]),
6566
name=kwargs["name"],
6667
frame=from_frame_to_grpc_frame(kwargs["frame"]),
6768
)

0 commit comments

Comments
 (0)