Skip to content

Commit

Permalink
api: fix typo on vulnerability error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmoura committed Oct 8, 2024
1 parent 8f136d2 commit 5801b1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion features/api_vulnerabilities_cve.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Client behaviour for CVE vulnerabilities API
"""
[
{
"code": "depedent-option",
"code": "dependent-option",
"meta": {
"option1": "series",
"option2": "manifest_file"
Expand Down
2 changes: 1 addition & 1 deletion features/api_vulnerabilities_usn.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Client behaviour for USN vulnerabilities API
"""
[
{
"code": "depedent-option",
"code": "dependent-option",
"meta": {
"option1": "series",
"option2": "manifest_file"
Expand Down
2 changes: 1 addition & 1 deletion uaclient/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions uaclient/messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
)

Expand Down

0 comments on commit 5801b1b

Please sign in to comment.