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

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