diff options
author | Thomas Haller <thaller@redhat.com> | 2023-06-28 12:02:14 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-06-28 12:14:21 +0200 |
commit | ddcb396495cc17cc99fce5d4b5793abce76107b8 (patch) | |
tree | 23ac37275e69926d271715a769677bf8b07b2d46 | |
parent | 42689d1c90ec3c11a5cc7fc01d7aacd3dae451fb (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-x | tools/test-cloud-meta-mock.py | 2 |
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")) |