Skip to content

Commit

Permalink
Start tango-server version dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusZuber committed Jun 25, 2024
1 parent 342f3fc commit 6d4c4a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions concert/ext/cmd/tango.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ def run(self, server: str, port: int, database: bool = False, device: [str, None
if device is None:
device = f'concert/tango/{server}'
if tango.Release.version_info < (9, 4, 1):
port_def = f"-ORBendPoint giop:tcp::{port}"
port_def = ["-ORBendPoint", f"giop:tcp::{port}"]

Check warning on line 79 in concert/ext/cmd/tango.py

View check run for this annotation

Codecov / codecov/patch

concert/ext/cmd/tango.py#L76-L79

Added lines #L76 - L79 were not covered by tests
else:
port_def = f"-port {port}"
port_def = ["-port", f"{port}"]
run(

Check warning on line 82 in concert/ext/cmd/tango.py

View check run for this annotation

Codecov / codecov/patch

concert/ext/cmd/tango.py#L81-L82

Added lines #L81 - L82 were not covered by tests
[server_class['class']],

args=[
server,
'name',
port_def,
port_def[0],
port_def[1],
'-v4',
'-nodb',
'-dlist',
Expand Down

0 comments on commit 6d4c4a2

Please sign in to comment.