diff options
author | John Estabrook <jestabro@vyos.io> | 2024-07-18 07:23:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 07:23:17 -0500 |
commit | 4d088e615adf5f9cb51b7d83c43f6476a6f1550b (patch) | |
tree | 4486e447f792d32959d6d70345c90238dea4e03d /src/op_mode/ssh.py | |
parent | fae91a8d206ecc630284528ed5185aa3bce6bce1 (diff) | |
parent | 33ae19a57dc12ffb38973de5666b428e11187602 (diff) | |
download | vyos-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-x | src/op_mode/ssh.py | 2 |
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: |