Skip to content

Commit ec10984

Browse files
authored
Merge pull request #853 from Bastian-Krause/bst/fix-remote-forward
remote/client: fix forwarding of remote ports
2 parents 36bc654 + 1850921 commit ec10984

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Bug fixes in 0.5.0
1111
- Fixed a bug where using ``labgrid-client io get`` always returned ``low``
1212
when reading a ``sysfsgpio``.
1313
- Fix labgrid-client exit code on keyboard interrupt.
14+
- Fixed ``labgrid-client forward --remote``/``-R``, which used either the LOCAL
15+
part of ``--local``/``-L`` accidentally (if specified) or raised an
16+
UnboundLocalError.
1417

1518
Breaking changes in 0.5.0
1619
~~~~~~~~~~~~~~~~~~~~~~~~~

labgrid/remote/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ def forward(self):
11211121
print(f"Forwarding local port {localport:d} to remote port {remote:d}")
11221122

11231123
for local, remote in self.args.remote:
1124-
stack.enter_context(drv.forward_remote_port(remote, localport))
1124+
stack.enter_context(drv.forward_remote_port(remote, local))
11251125
print(f"Forwarding remote port {remote:d} to local port {local:d}")
11261126

11271127
try:

0 commit comments

Comments
 (0)