Skip to content

Commit d9f9f46

Browse files
authored
DPF Server: default server config issue (#673)
* Fix parsing in case ansys_dpf_server is used * commit * remove * Add check if ansys_path is None
1 parent 6697f40 commit d9f9f46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ansys/dpf/core/server_factory.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,10 @@ def get_server_type_from_config(config: ServerConfig = None,
577577
# dpf.core.SERVER_CONFIGURATION is required to know what type of connection to set
578578
if config is None:
579579
# If no SERVER_CONFIGURATION is yet defined, set one with default values
580-
is_server_old = _find_outdated_ansys_version(ansys_path)
580+
is_server_old = False
581+
if ansys_path is not None:
582+
if not "ansys_dpf_server" in ansys_path:
583+
is_server_old = _find_outdated_ansys_version(ansys_path)
581584
config = get_default_server_config(is_server_old, docker_config)
582585
if config.protocol == CommunicationProtocols.gRPC and config.legacy:
583586
return LegacyGrpcServer

0 commit comments

Comments
 (0)