Attaching patch for the KickstartFormatter.java code. Logic was missing a newline when adding the $kickstart_start variable for cobbler < 2.2.

Bug is https://bugzilla.redhat.com/show_bug.cgi?id=975232

Regards,

Shannon Hughes
Senior SEG/GSS
>From 6dee390d17164c1020ec00ac648a8415f02fb780 Mon Sep 17 00:00:00 2001
From: Shannon Hughes <shug...@redhat.com>
Date: Mon, 17 Jun 2013 16:43:30 -0400
Subject: [PATCH] patch to add newline after writing kickstart_start var

---
 .../rhn/manager/kickstart/KickstartFormatter.java  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java b/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
index fcb9260..08c6159 100644
--- a/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
+++ b/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
@@ -255,6 +255,7 @@ public class KickstartFormatter {
         }
         else {
             buf.append("$kickstart_start");
+            buf.append(NEWLINE);
         }
 
         buf.append(NEWLINE);
-- 
1.7.7.6

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to