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 8, 2024
1 parent 39991a1 commit e2c1ed9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 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
4 changes: 2 additions & 2 deletions 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 All @@ -65,7 +65,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 apt install `linux-generic`
Expand Down
2 changes: 1 addition & 1 deletion uaclient/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def warn_about_invalid_keys(self):
LOG.warning('legacy "ua_config" found in uaclient.conf')
LOG.warning("Please do the following:")
LOG.warning(
" 1. run `pro config set field=value` for each"
" 1. run `sudo pro config set field=value` for each"
' field/value pair present under "ua_config" in'
" /etc/ubuntu-advantage/uaclient.conf"
)
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 e2c1ed9

Please sign in to comment.