summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-06-28 12:02:14 +0200
committerThomas Haller <thaller@redhat.com>2023-06-28 12:14:21 +0200
commitddcb396495cc17cc99fce5d4b5793abce76107b8 (patch)
tree23ac37275e69926d271715a769677bf8b07b2d46
parent42689d1c90ec3c11a5cc7fc01d7aacd3dae451fb (diff)
tests: avoid Python3 f-string in "test-cloud-meta-mock.py"
It breaks tests on Debian:9, which use Python2 still. Fixes: e1f3acf3a64e ('test-cloud-meta-mock: allow configuring the provider that are mimicked')
-rwxr-xr-xtools/test-cloud-meta-mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-cloud-meta-mock.py b/tools/test-cloud-meta-mock.py
index 1545bc513b..bc0a829ec7 100755
--- a/tools/test-cloud-meta-mock.py
+++ b/tools/test-cloud-meta-mock.py
@@ -45,7 +45,7 @@ def _s_to_bool(s):
if isinstance(s, int):
if s in [0, 1]:
return s == 1
- raise ValueError(f'Not a boolean value ("{s0}")')
+ raise ValueError('Not a boolean value ("%s")' % (s0,))
DEBUG = _s_to_bool(os.environ.get("NM_TEST_CLOUD_SETUP_MOCK_DEBUG", "0"))