fix to get_node over grpc to avoid issues with nodes that dont have services
This commit is contained in:
parent
104ac4cdc7
commit
3fc0ca5cec
1 changed files with 4 additions and 1 deletions
|
@ -807,7 +807,10 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
||||||
if isinstance(node, EmaneNet):
|
if isinstance(node, EmaneNet):
|
||||||
emane_model = node.model.name
|
emane_model = node.model.name
|
||||||
|
|
||||||
services = [x.name for x in getattr(node, "services", [])]
|
services = []
|
||||||
|
if node.services:
|
||||||
|
services = [x.name for x in node.services]
|
||||||
|
|
||||||
position = core_pb2.Position(
|
position = core_pb2.Position(
|
||||||
x=node.position.x, y=node.position.y, z=node.position.z
|
x=node.position.x, y=node.position.y, z=node.position.z
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue