summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-12 20:20:47 +0100
committerGitHub <noreply@github.com>2024-01-12 20:20:47 +0100
commit87cf581bff3c10a0364af6143fbb7c5f41edf166 (patch)
tree09ba15ab7952d03559bfdd23b205cabb1d287679
parent72e30717dc2d4bdec118be227054c5b3db3ce8e1 (diff)
parent21bdbd0b8136cfd7c94e45ed6218ab9f927370ad (diff)
downloadvyos-1x-87cf581bff3c10a0364af6143fbb7c5f41edf166.tar.gz
vyos-1x-87cf581bff3c10a0364af6143fbb7c5f41edf166.zip
Merge pull request #2813 from vyos/mergify/bp/sagitta/pr-2812
T5857: Fix op-mode show interfaces wireless info unconf message (backport #2812)
-rwxr-xr-xsrc/op_mode/interfaces_wireless.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/op_mode/interfaces_wireless.py b/src/op_mode/interfaces_wireless.py
index dfe50e2cb..259fd3900 100755
--- a/src/op_mode/interfaces_wireless.py
+++ b/src/op_mode/interfaces_wireless.py
@@ -32,6 +32,7 @@ def _verify(func):
def _wrapper(*args, **kwargs):
config = ConfigTreeQuery()
if not config.exists(['interfaces', 'wireless']):
+ unconf_message = 'No Wireless interfaces configured'
raise vyos.opmode.UnconfiguredSubsystem(unconf_message)
return func(*args, **kwargs)
return _wrapper