diff options
author | Christian Breunig <christian@breunig.cc> | 2024-10-05 20:34:43 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-06 14:56:59 +0000 |
commit | 740bff020e7d304339208be75513fd3188d4ca02 (patch) | |
tree | 4cc9828572bad9a9443f4045c0204f6f0f3854b7 | |
parent | 862be8905677d7691efd7b72f8857e0435ced7d1 (diff) | |
download | vyos-1x-740bff020e7d304339208be75513fd3188d4ca02.tar.gz vyos-1x-740bff020e7d304339208be75513fd3188d4ca02.zip |
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)
-rwxr-xr-x | src/conf_mode/protocols_static.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |