From 1d5c2c8b97dbf1883895cbbb7efd5cbfd7ea336a Mon Sep 17 00:00:00 2001 From: Dheyay Date: Wed, 31 Jan 2024 11:52:29 -0800 Subject: [PATCH] Updating messages that suggest running pro to include sudo. Fixes: #2598 --- debian/po/pt_BR.po | 10 +++++----- debian/po/ubuntu-pro.pot | 10 +++++----- features/livepatch.feature | 2 +- uaclient/messages/__init__.py | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po index bfa2986f8c..003081bf39 100644 --- a/debian/po/pt_BR.po +++ b/debian/po/pt_BR.po @@ -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 \n" "Language-Team: Brazilian Portuguese \n" "Language-Team: LANGUAGE \n" @@ -2506,8 +2506,8 @@ 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 @@ -2515,8 +2515,8 @@ msgstr "" 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 diff --git a/features/livepatch.feature b/features/livepatch.feature index 2b7e5c4315..62f87a7be8 100644 --- a/features/livepatch.feature +++ b/features/livepatch.feature @@ -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 diff --git a/uaclient/messages/__init__.py b/uaclient/messages/__init__.py index 1f1f6983f8..5a996eb4a6 100644 --- a/uaclient/messages/__init__.py +++ b/uaclient/messages/__init__.py @@ -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( @@ -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