kdump-anaconda-addon/dont-mix-tabs-and-spaces-for-indentation.patch
2021-08-07 10:31:04 +08:00

25 lines
1.1 KiB
Diff

From 354324a5c577774863977254358a61ef0d00d1d5 Mon Sep 17 00:00:00 2001
From: Martin Kolman <mkolman@redhat.com>
Date: Tue, 17 Mar 2015 15:41:51 +0100
Subject: [PATCH] Don't mix tabs and spaces for indentation
While discouraged it is still possible to mix tabs and spaces in Python
2, but in Python 3 this cases an error at runtime.
---
com_redhat_kdump/ks/kdump.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/com_redhat_kdump/ks/kdump.py b/com_redhat_kdump/ks/kdump.py
index d83da32..6929c9b 100644
--- a/com_redhat_kdump/ks/kdump.py
+++ b/com_redhat_kdump/ks/kdump.py
@@ -88,7 +88,7 @@ def setup(self, storage, ksdata, instClass):
if self.enabled:
storage.bootloader.boot_args.add('crashkernel=%s' % self.reserveMB)
ksdata.packages.packageList.append("kexec-tools")
- if self.enablefadump and os.path.exists(FADUMP_CAPABLE_FILE):
+ if self.enablefadump and os.path.exists(FADUMP_CAPABLE_FILE):
storage.bootloader.boot_args.add('fadump=on')
def handle_header(self, lineno, args):