From a888cd1f3b4190f409deb4dc2360d7175db48a97 Mon Sep 17 00:00:00 2001 From: David McLain Date: Wed, 27 Nov 2024 21:17:57 +0000 Subject: [PATCH 1/3] message of the day fix --- landscape/sysinfo/landscapelink.py | 4 ++-- landscape/sysinfo/tests/test_landscapelink.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/landscape/sysinfo/landscapelink.py b/landscape/sysinfo/landscapelink.py index 771290934..dc90df2f2 100644 --- a/landscape/sysinfo/landscapelink.py +++ b/landscape/sysinfo/landscapelink.py @@ -7,7 +7,7 @@ def register(self, sysinfo): def run(self): self._sysinfo.add_footnote( - "Graph this data and manage this system at:\n" - " https://landscape.canonical.com/", + "Graph this data and manage this system with Landscape. " + "https://ubuntu.com/landscape", ) return succeed(None) diff --git a/landscape/sysinfo/tests/test_landscapelink.py b/landscape/sysinfo/tests/test_landscapelink.py index ca573697c..e7499f917 100644 --- a/landscape/sysinfo/tests/test_landscapelink.py +++ b/landscape/sysinfo/tests/test_landscapelink.py @@ -20,7 +20,7 @@ def test_run_adds_footnote(self): self.assertEqual( self.sysinfo.get_footnotes(), [ - "Graph this data and manage this system at:\n" - " https://landscape.canonical.com/", + "Graph this data and manage this system with Landscape. " + "https://ubuntu.com/landscape", ], ) From d5598dc39f00dadccda26a6f010738f2520cffc5 Mon Sep 17 00:00:00 2001 From: David McLain Date: Mon, 2 Dec 2024 13:16:07 +0000 Subject: [PATCH 2/3] added newline character --- landscape/sysinfo/landscapelink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landscape/sysinfo/landscapelink.py b/landscape/sysinfo/landscapelink.py index dc90df2f2..f8669b9b9 100644 --- a/landscape/sysinfo/landscapelink.py +++ b/landscape/sysinfo/landscapelink.py @@ -7,7 +7,7 @@ def register(self, sysinfo): def run(self): self._sysinfo.add_footnote( - "Graph this data and manage this system with Landscape. " + "Graph this data and manage this system with Landscape. \n" "https://ubuntu.com/landscape", ) return succeed(None) From 7176c61b19726d5833b40d75f76350a3e9956f07 Mon Sep 17 00:00:00 2001 From: David McLain Date: Mon, 2 Dec 2024 13:17:25 +0000 Subject: [PATCH 3/3] added newline to testcase --- landscape/sysinfo/tests/test_landscapelink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landscape/sysinfo/tests/test_landscapelink.py b/landscape/sysinfo/tests/test_landscapelink.py index e7499f917..93b8d8d97 100644 --- a/landscape/sysinfo/tests/test_landscapelink.py +++ b/landscape/sysinfo/tests/test_landscapelink.py @@ -20,7 +20,7 @@ def test_run_adds_footnote(self): self.assertEqual( self.sysinfo.get_footnotes(), [ - "Graph this data and manage this system with Landscape. " + "Graph this data and manage this system with Landscape. \n" "https://ubuntu.com/landscape", ], )