summaryrefslogtreecommitdiff
path: root/src/op_mode/ssh.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-07-17 11:45:35 +0100
committerDaniil Baturin <daniil@baturin.org>2024-07-17 11:45:35 +0100
commit33ae19a57dc12ffb38973de5666b428e11187602 (patch)
tree3dedbe75601c95f3fefccbd5450bdacd958fdfa6 /src/op_mode/ssh.py
parente9232c7a751ffec34f18e1734cb18ac01da35cb7 (diff)
downloadvyos-1x-33ae19a57dc12ffb38973de5666b428e11187602.tar.gz
vyos-1x-33ae19a57dc12ffb38973de5666b428e11187602.zip
op-mode: T6586: add a distinct exception for unconfigured objects
as opposed to entire subsystems
Diffstat (limited to 'src/op_mode/ssh.py')
-rwxr-xr-xsrc/op_mode/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/ssh.py b/src/op_mode/ssh.py
index 102becc55..0c51576b0 100755
--- a/src/op_mode/ssh.py
+++ b/src/op_mode/ssh.py
@@ -65,7 +65,7 @@ def show_fingerprints(raw: bool, ascii: bool):
def show_dynamic_protection(raw: bool):
config = ConfigTreeQuery()
if not config.exists(['service', 'ssh', 'dynamic-protection']):
- raise vyos.opmode.UnconfiguredSubsystem("SSH server dynamic-protection is not enabled.")
+ raise vyos.opmode.UnconfiguredObject("SSH server dynamic-protection is not enabled.")
attackers = []
try: