diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/py/nft-test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index 1b7e04c9..3b89ec35 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -278,7 +278,9 @@ def chain_create(chain, table, filename): print_error(reason, filename, chain.lineno) return -1 - cmd = "add chain %s %s { %s; }" % (table, chain, chain.config) + cmd = "add chain %s %s" % (table, chain) + if chain.config: + cmd += " { %s; }" % chain.config ret = execute_cmd(cmd, filename, chain.lineno) if ret != 0: |