diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 07:13:44 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 07:13:46 +0200 |
commit | 4f8ae0d3d51b62caeec856386844074f38935b87 (patch) | |
tree | 4cdeb4c18a8926a818bb4ae4b0af3b1e05c1f021 | |
parent | 8ba3ef37d55fb197dd0706a2ef3b469ca0afa90a (diff) | |
download | vyos-1x-4f8ae0d3d51b62caeec856386844074f38935b87.tar.gz vyos-1x-4f8ae0d3d51b62caeec856386844074f38935b87.zip |
smoketest: ids: bugfix AttributeError
AttributeError: 'list' object has no attribute 'join'
-rwxr-xr-x | smoketest/scripts/cli/test_service_ids.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_ids.py b/smoketest/scripts/cli/test_service_ids.py index e5f7ca071..ddb42e8f8 100755 --- a/smoketest/scripts/cli/test_service_ids.py +++ b/smoketest/scripts/cli/test_service_ids.py @@ -87,7 +87,8 @@ class TestServiceIDS(VyOSUnitTestSHIM.TestCase): self.assertIn(f'ban_for_pps = on', config) self.assertIn(f'threshold_pps = {pps}', config) - self.assertIn(f'interfaces = {interfaces.join(",")}', config) + tmp = ','.join(interfaces) + self.assertIn(f'interfaces = {tmp}', config) if __name__ == '__main__': unittest.main(verbosity=2) |