diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-01 10:49:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-01 10:51:06 +0200 |
commit | dfbbdd2950c3db3f56649ff602a86b8bf17de748 (patch) | |
tree | f2eb25dbeb7168041be3d9f8b7a13949b2405b22 /python/vyos/configverify.py | |
parent | 7e9266025d97bd51a6a413af8bd7f3f65ea9a65d (diff) | |
download | vyos-1x-dfbbdd2950c3db3f56649ff602a86b8bf17de748.tar.gz vyos-1x-dfbbdd2950c3db3f56649ff602a86b8bf17de748.zip |
ifconfig: T2752: fix string format in verify_interface_exists()
We do not have a formatted string here thus the "f" keyword is wrong and
triggered an exception.
Diffstat (limited to 'python/vyos/configverify.py')
-rw-r--r-- | python/vyos/configverify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 8e06d16f2..bb590a514 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -69,7 +69,7 @@ def verify_interface_exists(config): """ from netifaces import interfaces if not config['ifname'] in interfaces(): - raise ConfigError(f'Interface "{ifname}" does not exist!' + raise ConfigError('Interface "{ifname}" does not exist!' .format(**config)) def verify_source_interface(config): |