summaryrefslogtreecommitdiff
path: root/src/op_mode/ssh.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-07-18 07:23:17 -0500
committerGitHub <noreply@github.com>2024-07-18 07:23:17 -0500
commit4d088e615adf5f9cb51b7d83c43f6476a6f1550b (patch)
tree4486e447f792d32959d6d70345c90238dea4e03d /src/op_mode/ssh.py
parentfae91a8d206ecc630284528ed5185aa3bce6bce1 (diff)
parent33ae19a57dc12ffb38973de5666b428e11187602 (diff)
downloadvyos-1x-4d088e615adf5f9cb51b7d83c43f6476a6f1550b.tar.gz
vyos-1x-4d088e615adf5f9cb51b7d83c43f6476a6f1550b.zip
Merge pull request #3818 from dmbaturin/T6586-unconfigured-object
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: