mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 18:20:29 +01:00
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:
parent
42689d1c90
commit
ddcb396495
1 changed files with 1 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue