Skip to content

Commit

Permalink
Updating messages that suggest running pro to include sudo.
Browse files Browse the repository at this point in the history
Fixes: #2598
  • Loading branch information
dheyay committed Feb 6, 2024
1 parent 39991a1 commit 1d5c2c8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions debian/po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-18 10:50-0500\n"
"POT-Creation-Date: 2024-02-05 11:04-0800\n"
"PO-Revision-Date: 2023-09-25 12:29-0400\n"
"Last-Translator: Lucas Moura <[email protected]>\n"
"Language-Team: Brazilian Portuguese <[email protected]."
Expand Down Expand Up @@ -2842,17 +2842,17 @@ msgid ""
"The current kernel ({{version}}, {{arch}}) has reached the end of its "
"livepatch support.\n"
"Supported kernels are listed here: {url}\n"
"Either switch to a supported kernel or `pro disable livepatch` to dismiss "
"this warning."
"Either switch to a supported kernel or `sudo pro disable livepatch` to "
"dismiss this warning."
msgstr ""

#: ../../uaclient/messages/__init__.py:1835
#, python-brace-format
msgid ""
"The current kernel ({{version}}, {{arch}}) is not supported by livepatch.\n"
"Supported kernels are listed here: {url}\n"
"Either switch to a supported kernel or `pro disable livepatch` to dismiss "
"this warning."
"Either switch to a supported kernel or `sudo pro disable livepatch` to "
"dismiss this warning."
msgstr ""

#: ../../uaclient/messages/__init__.py:1845
Expand Down
10 changes: 5 additions & 5 deletions debian/po/ubuntu-pro.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-18 10:50-0500\n"
"POT-Creation-Date: 2024-02-05 11:04-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -2506,17 +2506,17 @@ msgid ""
"The current kernel ({{version}}, {{arch}}) has reached the end of its "
"livepatch support.\n"
"Supported kernels are listed here: {url}\n"
"Either switch to a supported kernel or `pro disable livepatch` to dismiss "
"this warning."
"Either switch to a supported kernel or `sudo pro disable livepatch` to "
"dismiss this warning."
msgstr ""

#: ../../uaclient/messages/__init__.py:1835
#, python-brace-format
msgid ""
"The current kernel ({{version}}, {{arch}}) is not supported by livepatch.\n"
"Supported kernels are listed here: {url}\n"
"Either switch to a supported kernel or `pro disable livepatch` to dismiss "
"this warning."
"Either switch to a supported kernel or `sudo pro disable livepatch` to "
"dismiss this warning."
msgstr ""

#: ../../uaclient/messages/__init__.py:1845
Expand Down
2 changes: 1 addition & 1 deletion features/livepatch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Feature: Livepatch
NOTICES
The current kernel \(5.4.0-(\d+)-kvm, x86_64\) is not supported by livepatch.
Supported kernels are listed here: https://ubuntu.com/security/livepatch/docs/kernels
Either switch to a supported kernel or `pro disable livepatch` to dismiss this warning.
Either switch to a supported kernel or `sudo pro disable livepatch` to dismiss this warning.
"""
When I run `pro disable livepatch` with sudo
Expand Down
4 changes: 2 additions & 2 deletions uaclient/messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ def __repr__(self):
"""\
The current kernel ({{version}}, {{arch}}) has reached the end of its livepatch support.
Supported kernels are listed here: {url}
Either switch to a supported kernel or `pro disable livepatch` to dismiss this warning.""" # noqa: E501
Either switch to a supported kernel or `sudo pro disable livepatch` to dismiss this warning.""" # noqa: E501
).format(url=urls.LIVEPATCH_SUPPORTED_KERNELS),
)
LIVEPATCH_KERNEL_NOT_SUPPORTED = FormattedNamedMessage(
Expand All @@ -1835,7 +1835,7 @@ def __repr__(self):
"""\
The current kernel ({{version}}, {{arch}}) is not supported by livepatch.
Supported kernels are listed here: {url}
Either switch to a supported kernel or `pro disable livepatch` to dismiss this warning.""" # noqa: E501
Either switch to a supported kernel or `sudo pro disable livepatch` to dismiss this warning.""" # noqa: E501
).format(
url=urls.LIVEPATCH_SUPPORTED_KERNELS
), # noqa: E501
Expand Down

0 comments on commit 1d5c2c8

Please sign in to comment.