From 34850de90c0fbc0c51ab7b4f4aeb0a87a73369ef Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 5 Oct 2024 20:34:43 +0200 Subject: static: T4283: fix missing f'ormat string This fixes the error message: Can not use both blackhole and reject for prefix "{prefix}"! Added in commit bb78f3a9ad28 ("static: T4283: support "reject" routes - emit an ICMP unreachable when matched") (cherry picked from commit 490ee3ec5ba7ea28002890841eab8e46f775a129) --- src/conf_mode/protocols_static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/protocols_static.py b/src/conf_mode/protocols_static.py index a2373218a..430cc69d4 100755 --- a/src/conf_mode/protocols_static.py +++ b/src/conf_mode/protocols_static.py @@ -88,7 +88,7 @@ def verify(static): if {'blackhole', 'reject'} <= set(prefix_options): raise ConfigError(f'Can not use both blackhole and reject for '\ - 'prefix "{prefix}"!') + f'prefix "{prefix}"!') return None -- cgit v1.2.3