Skip to content

Commit

Permalink
fix: checking port on non-grpc mapdl instances
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 6, 2024
1 parent 21e52c8 commit 45dbf5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ansys/mapdl/core/cli/list_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,13 @@ def get_port(proc):
ind_grpc = cmdline.index("-port")
return cmdline[ind_grpc + 1]

def is_grpc_based(proc):
cmdline = proc.cmdline()
return "-grpc" in cmdline

table = []
for each_p in mapdl_instances:
if instances and not each_p.ansys_instance:
if not each_p.ansys_instance or not is_grpc_based(each_p):
continue

proc_line = []
Expand Down

0 comments on commit 45dbf5f

Please sign in to comment.