Skip to content

Commit

Permalink
DPF Server: default server config issue (#673)
Browse files Browse the repository at this point in the history
* Fix parsing in case ansys_dpf_server is used

* commit

* remove

* Add check if ansys_path is None
  • Loading branch information
anslpa authored Dec 7, 2022
1 parent 6697f40 commit d9f9f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansys/dpf/core/server_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,10 @@ def get_server_type_from_config(config: ServerConfig = None,
# dpf.core.SERVER_CONFIGURATION is required to know what type of connection to set
if config is None:
# If no SERVER_CONFIGURATION is yet defined, set one with default values
is_server_old = _find_outdated_ansys_version(ansys_path)
is_server_old = False
if ansys_path is not None:
if not "ansys_dpf_server" in ansys_path:
is_server_old = _find_outdated_ansys_version(ansys_path)
config = get_default_server_config(is_server_old, docker_config)
if config.protocol == CommunicationProtocols.gRPC and config.legacy:
return LegacyGrpcServer
Expand Down

0 comments on commit d9f9f46

Please sign in to comment.