diff options
author | Daniil Baturin <daniil@baturin.org> | 2024-07-17 11:45:35 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2024-07-17 11:45:35 +0100 |
commit | 33ae19a57dc12ffb38973de5666b428e11187602 (patch) | |
tree | 3dedbe75601c95f3fefccbd5450bdacd958fdfa6 /src/op_mode/dhcp.py | |
parent | e9232c7a751ffec34f18e1734cb18ac01da35cb7 (diff) | |
download | vyos-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/dhcp.py')
-rwxr-xr-x | src/op_mode/dhcp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py index 6f57f22a5..e5455c8af 100755 --- a/src/op_mode/dhcp.py +++ b/src/op_mode/dhcp.py @@ -332,7 +332,7 @@ def _verify_client(func): # Check if config does not exist if not config.exists(f'interfaces {interface_path} address dhcp{v}'): - raise vyos.opmode.UnconfiguredSubsystem(unconf_message) + raise vyos.opmode.UnconfiguredObject(unconf_message) return func(*args, **kwargs) return _wrapper |