]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: json_echo: Fix for Python3
authorPhil Sutter <phil@nwl.cc>
Thu, 6 Feb 2020 00:21:30 +0000 (01:21 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 7 Feb 2020 12:28:02 +0000 (13:28 +0100)
commit582f142b1578b6036707242bfe874bcefc002ac2
tree1c8787aeb4a85b7853f4a07e0144223e79830f54
parent694cf23999eea468dc3124f1269f333d47a75a5e
tests: json_echo: Fix for Python3

The keys() method returns an object which does not support indexing, so
convert it to a list prior to doing so.

Fixes: a35e3a0cdc63a ("tests: json_echo: convert to py3")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/json_echo/run-test.py