Could you please try attached patch and report back to me?
Thanks!
--
Grtz,
Jörgen Maas
From f84b047349e93e7db5ecf70735533665dba581a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rgen=20Maas?= <[email protected]>
Date: Wed, 26 Oct 2011 19:11:30 +0200
Subject: [PATCH] buildiso: bugfix wrt append_line with duplicate keywords
---
cobbler/action_buildiso.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/cobbler/action_buildiso.py b/cobbler/action_buildiso.py
index 872b3a3..dbad741 100644
--- a/cobbler/action_buildiso.py
+++ b/cobbler/action_buildiso.py
@@ -358,7 +358,11 @@ class BuildIso:
if v == None:
append_line += " %s" % k
else:
- append_line += " %s=%s" % (k,v)
+ if type(v) == list:
+ for i in v:
+ append_line += " %s=%s" % (k,i)
+ else:
+ append_line += " %s=%s" % (k,v)
append_line += "\n"
cfg.write(append_line)
@@ -435,7 +439,11 @@ class BuildIso:
if v == None:
append_line += " %s" % k
else:
- append_line += " %s=%s" % (k,v)
+ if type(v) == list:
+ for i in v:
+ append_line += " %s=%s" % (k,i)
+ else:
+ append_line += " %s=%s" % (k,v)
append_line += "\n"
cfg.write(append_line)
--
1.7.6.4
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler