tests: avoid Python3 f-string in "test-cloud-meta-mock.py"

It breaks tests on Debian:9, which use Python2 still.

Fixes: e1f3acf3a6 ('test-cloud-meta-mock: allow configuring the provider that are mimicked')
This commit is contained in:
Thomas Haller 2023-06-28 12:02:14 +02:00
parent 42689d1c90
commit ddcb396495
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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"))