Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server version parsing to correctly treat ansys_dpf_server #673

Merged
merged 4 commits into from
Dec 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ansys/dpf/core/server_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,9 @@ 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 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