Blame SOURCES/sos-bz1959598-conversions-and-upgrades.patch

2ed6e8
From ee5d9d017b0a1bfeaebee9c21c17e89ef1f909a8 Mon Sep 17 00:00:00 2001
2ed6e8
From: Pavel Moravec <pmoravec@redhat.com>
2ed6e8
Date: Mon, 26 Jul 2021 13:30:09 +0200
2ed6e8
Subject: [PATCH] [MigrationResults] collect info about conversions and
2ed6e8
 upgrades
2ed6e8
2ed6e8
A new tiny plugin independent on leapp and convert2rhel is proposed.
2ed6e8
2ed6e8
It should collect /etc/migration-results with info about RHEL
2ed6e8
conversions and upgrades, whenever the file is present.
2ed6e8
2ed6e8
Resolves: #2627
2ed6e8
Relevant to: rhbz#1959598
2ed6e8
2ed6e8
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
2ed6e8
---
2ed6e8
 sos/report/plugins/migration_results.py | 21 +++++++++++++++++++++
2ed6e8
 1 file changed, 21 insertions(+)
2ed6e8
 create mode 100644 sos/report/plugins/migration_results.py
2ed6e8
2ed6e8
diff --git a/sos/report/plugins/migration_results.py b/sos/report/plugins/migration_results.py
2ed6e8
new file mode 100644
2ed6e8
index 00000000..b67480ba
2ed6e8
--- /dev/null
2ed6e8
+++ b/sos/report/plugins/migration_results.py
2ed6e8
@@ -0,0 +1,21 @@
2ed6e8
+# This file is part of the sos project: https://github.com/sosreport/sos
2ed6e8
+#
2ed6e8
+# This copyrighted material is made available to anyone wishing to use,
2ed6e8
+# modify, copy, or redistribute it subject to the terms and conditions of
2ed6e8
+# version 2 of the GNU General Public License.
2ed6e8
+#
2ed6e8
+# See the LICENSE file in the source distribution for further information.
2ed6e8
+
2ed6e8
+from sos.report.plugins import Plugin, RedHatPlugin
2ed6e8
+
2ed6e8
+
2ed6e8
+class MigrationResults(Plugin, RedHatPlugin):
2ed6e8
+
2ed6e8
+    short_desc = 'Information about conversions and upgrades'
2ed6e8
+
2ed6e8
+    plugin_name = 'migration_results'
2ed6e8
+    profiles = ('system',)
2ed6e8
+
2ed6e8
+    files = ('/etc/migration-results',)
2ed6e8
+
2ed6e8
+# vim: et ts=4 sw=4
2ed6e8
-- 
2ed6e8
2.31.1
2ed6e8