From 5801b1b989769b4821b2163e9dea67abd1d9a014 Mon Sep 17 00:00:00 2001 From: Lucas Moura Date: Tue, 8 Oct 2024 14:45:20 -0300 Subject: [PATCH] api: fix typo on vulnerability error message --- features/api_vulnerabilities_cve.feature | 2 +- features/api_vulnerabilities_usn.feature | 2 +- uaclient/exceptions.py | 2 +- uaclient/messages/__init__.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/features/api_vulnerabilities_cve.feature b/features/api_vulnerabilities_cve.feature index 0fc369b688..75acc89b67 100644 --- a/features/api_vulnerabilities_cve.feature +++ b/features/api_vulnerabilities_cve.feature @@ -8,7 +8,7 @@ Feature: Client behaviour for CVE vulnerabilities API """ [ { - "code": "depedent-option", + "code": "dependent-option", "meta": { "option1": "series", "option2": "manifest_file" diff --git a/features/api_vulnerabilities_usn.feature b/features/api_vulnerabilities_usn.feature index c2b4332814..33f1ebe568 100644 --- a/features/api_vulnerabilities_usn.feature +++ b/features/api_vulnerabilities_usn.feature @@ -8,7 +8,7 @@ Feature: Client behaviour for USN vulnerabilities API """ [ { - "code": "depedent-option", + "code": "dependent-option", "meta": { "option1": "series", "option2": "manifest_file" diff --git a/uaclient/exceptions.py b/uaclient/exceptions.py index 2bc7ab512d..166832dbd6 100644 --- a/uaclient/exceptions.py +++ b/uaclient/exceptions.py @@ -572,7 +572,7 @@ class InvalidOptionCombination(UbuntuProError): class DepedentOptionError(UbuntuProError): - _formatted_msg = messages.E_DEPEDENT_OPTION + _formatted_msg = messages.E_DEPENDENT_OPTION class NoHelpContent(UbuntuProError): diff --git a/uaclient/messages/__init__.py b/uaclient/messages/__init__.py index 242bba9fa5..8a1ad9498b 100644 --- a/uaclient/messages/__init__.py +++ b/uaclient/messages/__init__.py @@ -2716,8 +2716,8 @@ def __repr__(self): t.gettext("Error: Cannot use {option1} together with {option2}."), ) -E_DEPEDENT_OPTION = FormattedNamedMessage( - "depedent-option", +E_DEPENDENT_OPTION = FormattedNamedMessage( + "dependent-option", t.gettext("Error: {option1} depends on {option2} to work properly."), )