66 lines
2.6 KiB
Diff
66 lines
2.6 KiB
Diff
From 07a69ab652ffc418e9366d7fca338b0633a1b75c Mon Sep 17 00:00:00 2001
|
|
From: Vendula Poncova <vponcova@redhat.com>
|
|
Date: Thu, 6 Dec 2018 17:26:15 +0100
|
|
Subject: [PATCH] Remove install classes
|
|
|
|
Anaconda removes the install classes from the code. They are
|
|
replaced with cofiguration files.
|
|
---
|
|
com_redhat_kdump/gui/spokes/kdump.py | 4 ++--
|
|
com_redhat_kdump/ks/kdump.py | 4 ++--
|
|
com_redhat_kdump/tui/spokes/kdump.py | 4 ++--
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/com_redhat_kdump/gui/spokes/kdump.py b/com_redhat_kdump/gui/spokes/kdump.py
|
|
index 7a52b46..c8f5c9b 100644
|
|
--- a/com_redhat_kdump/gui/spokes/kdump.py
|
|
+++ b/com_redhat_kdump/gui/spokes/kdump.py
|
|
@@ -53,8 +53,8 @@ def should_run(cls, environment, data):
|
|
# the KdumpSpoke should run only if requested
|
|
return flags.cmdline.getbool("kdump_addon", default=False)
|
|
|
|
- def __init__(self, data, storage, payload, instclass):
|
|
- NormalSpoke.__init__(self, data, storage, payload, instclass)
|
|
+ def __init__(self, *args):
|
|
+ NormalSpoke.__init__(self, *args)
|
|
self._reserveMem = 0
|
|
|
|
def initialize(self):
|
|
diff --git a/com_redhat_kdump/ks/kdump.py b/com_redhat_kdump/ks/kdump.py
|
|
index fa1bfee..6cc664f 100644
|
|
--- a/com_redhat_kdump/ks/kdump.py
|
|
+++ b/com_redhat_kdump/ks/kdump.py
|
|
@@ -64,7 +64,7 @@ def __str__(self):
|
|
|
|
return addon_str
|
|
|
|
- def setup(self, storage, ksdata, instClass, payload):
|
|
+ def setup(self, storage, ksdata, payload):
|
|
# the kdump addon should run only if requested
|
|
if not flags.cmdline.getbool("kdump_addon", default=False):
|
|
return
|
|
@@ -135,7 +135,7 @@ def handle_header(self, lineno, args):
|
|
self.reserveMB = opts.reserveMB
|
|
self.enablefadump = opts.enablefadump
|
|
|
|
- def execute(self, storage, ksdata, instClass, users, payload):
|
|
+ def execute(self, storage, ksdata, users, payload):
|
|
# the KdumpSpoke should run only if requested
|
|
if not flags.cmdline.getbool("kdump_addon", default=False) or not self.enabled:
|
|
return
|
|
diff --git a/com_redhat_kdump/tui/spokes/kdump.py b/com_redhat_kdump/tui/spokes/kdump.py
|
|
index dea0b14..871f71d 100644
|
|
--- a/com_redhat_kdump/tui/spokes/kdump.py
|
|
+++ b/com_redhat_kdump/tui/spokes/kdump.py
|
|
@@ -40,8 +40,8 @@
|
|
class KdumpSpoke(NormalTUISpoke):
|
|
category = SystemCategory
|
|
|
|
- def __init__(self, data, storage, payload, instclass):
|
|
- super().__init__(data, storage, payload, instclass)
|
|
+ def __init__(self, *args):
|
|
+ super().__init__(*args)
|
|
self.title = N_("Kdump")
|
|
self._addon_data = self.data.addons.com_redhat_kdump
|
|
|