From 3bb0f9714c09d12413ac2bc0a45f727841e8ca05 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Tue, 26 Apr 2016 10:09:40 +0200 Subject: [PATCH] Add support for new Anaconda addon methods (#1288636) Setup() and execute() methods now have payload class accessible for addons. These methods were changed in anaconda-21.48.22.67 for RHEL-7 and anaconda-25.9 for Rawhide (for the next Fedora 25). Related: rhbz#1288636 --- com_redhat_kdump/ks/kdump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com_redhat_kdump/ks/kdump.py b/com_redhat_kdump/ks/kdump.py index 34f46a2..ec4ab35 100644 --- a/com_redhat_kdump/ks/kdump.py +++ b/com_redhat_kdump/ks/kdump.py @@ -61,7 +61,7 @@ def __str__(self): return addon_str - def setup(self, storage, ksdata, instClass): + def setup(self, storage, ksdata, instClass, payload): # the kdump addon should run only if requested if not flags.cmdline.getbool("kdump_addon", default=False): return @@ -128,7 +128,7 @@ def handle_header(self, lineno, args): self.reserveMB =opts.reserveMB self.enablefadump = opts.enablefadump - def execute(self, storage, ksdata, instClass, users): + def execute(self, storage, ksdata, instClass, users, payload): # the KdumpSpoke should run only if requested if not flags.cmdline.getbool("kdump_addon", default=False): return