Skip to content

Commit 51ac185

Browse files
committed
fix issue
1 parent c51550e commit 51ac185

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ansys/tools/common/cyberchannel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def create_channel(
7575
transport_mode: str,
7676
host: str | None = None,
7777
port: int | str | None = None,
78-
uds_fullpath: str | Path | None = None,
7978
uds_service: str | None = None,
8079
uds_dir: str | Path | None = None,
8180
uds_id: str | None = None,
81+
uds_fullpath: str | Path | None = None,
8282
certs_dir: str | Path | None = None,
8383
cert_files: CertificateFiles | None = None,
8484
grpc_options: list[tuple[str, object]] | None = None,
@@ -98,9 +98,6 @@ def create_channel(
9898
Port in which the server is running.
9999
By default `None` - however, if not using UDS transport mode,
100100
it will be requested.
101-
uds_fullpath : str | Path | None
102-
Full path to the UDS socket file.
103-
By default `None` and thus it will use the `uds_service`, `uds_dir` and `uds_id` parameters.
104101
uds_service : str | None
105102
Optional service name for the UDS socket.
106103
By default `None` - however, if UDS is selected, it will
@@ -112,6 +109,9 @@ def create_channel(
112109
Optional ID to use for the UDS socket filename.
113110
By default `None` and thus it will use "<uds_service>.sock".
114111
Otherwise, the socket filename will be "<uds_service>-<uds_id>.sock".
112+
uds_fullpath : str | Path | None
113+
Full path to the UDS socket file.
114+
By default `None` and thus it will use the `uds_service`, `uds_dir` and `uds_id` parameters.
115115
certs_dir : str | Path | None
116116
Directory to use for TLS certificates.
117117
By default `None` and thus search for the "ANSYS_GRPC_CERTIFICATES" environment variable.
@@ -145,7 +145,7 @@ def check_host_port(transport_mode, host, port) -> tuple[str, str, str]:
145145
transport_mode, host, port = check_host_port(transport_mode, host, port)
146146
return create_insecure_channel(host, port, grpc_options)
147147
case "uds":
148-
return create_uds_channel(uds_fullpath, uds_service, uds_dir, uds_id, grpc_options)
148+
return create_uds_channel(uds_service, uds_dir, uds_id, grpc_options, uds_fullpath)
149149
case "wnua":
150150
transport_mode, host, port = check_host_port(transport_mode, host, port)
151151
return create_wnua_channel(host, port, grpc_options)
@@ -190,7 +190,7 @@ def create_insecure_channel(
190190

191191

192192
def create_uds_channel(
193-
uds_service: str | None = None,
193+
uds_service: str | None,
194194
uds_dir: str | Path | None = None,
195195
uds_id: str | None = None,
196196
grpc_options: list[tuple[str, object]] | None = None,

0 commit comments

Comments
 (0)