diff --git a/plugins/module_utils/version_utils.py b/plugins/module_utils/version_utils.py index 5677c920..485f5d25 100644 --- a/plugins/module_utils/version_utils.py +++ b/plugins/module_utils/version_utils.py @@ -9,7 +9,7 @@ import subprocess -class OPNSenseConfigUsageError(Exception): +class OPNSenseVersionUsageError(Exception): """ Error Class to be raised in improper module usage """ @@ -25,6 +25,6 @@ def get_opnsense_version() -> str: ).strip() except subprocess.CalledProcessError as exc: - raise OPNSenseConfigUsageError( + raise OPNSenseVersionUsageError( f"There was an error getting the version {exc}" ) from subprocess.CalledProcessError