diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-02-17 21:10:16 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-02-17 21:10:16 +0100 |
commit | 9e626ce7bad2bd846826822a3622fedf2d937e09 (patch) | |
tree | 20dbb773f7df76009dc8b9ac8c028ba3c33b4299 /python | |
parent | 1cbcbf40b7721849f9696c05fac65db010a66b7c (diff) | |
download | vyos-1x-9e626ce7bad2bd846826822a3622fedf2d937e09.tar.gz vyos-1x-9e626ce7bad2bd846826822a3622fedf2d937e09.zip |
vyos.configverify: T4255: fix unexpected print of dictionary instead of key
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configverify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 18fb7f9f7..fab88bc72 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -224,9 +224,10 @@ def verify_bridge_delete(config): when interface also is part of a bridge. """ if 'is_bridge_member' in config: - raise ConfigError( - 'Interface "{ifname}" cannot be deleted as it is a ' - 'member of bridge "{is_bridge_member}"!'.format(**config)) + interface = config['ifname'] + for bridge in config['is_bridge_member']: + raise ConfigError(f'Interface "{interface}" cannot be deleted as it ' + f'is a member of bridge "{bridge}"!') def verify_interface_exists(ifname): """ |