So basically in a kickstart profile/distro/system record if you set standalone
kernel options as
Kernel Options : {'vnc': '', 'vncpassword': 'foo'}
the kickstart will get rendered as
/sbin/grubby --update-kernel=`/sbin/grubby --default-kernel` --args="vnc=
vncpassword=foo"
instead of
/sbin/grubby --update-kernel=`/sbin/grubby --default-kernel` --args="vnc
vncpassword=foo"
(extra '=' after vnc). The attached patch resolves this issue. Originally this
was reported as part of spacewalk
https://bugzilla.redhat.com/show_bug.cgi?id=529277 and the investigation led to
this cobbler issue and fix.
Partha>From 847b3c70cd8167a0c56adbba6474c6146801685c Mon Sep 17 00:00:00 2001
From: Partha Aji <[email protected]>
Date: Mon, 22 Mar 2010 18:34:10 -0400
Subject: Fix for spacewalk bug 529277
---
cobbler/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 4dedbf8..1572906 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -820,7 +820,7 @@ def hash_to_string(hash):
return hash
for key in hash:
value = hash[key]
- if value is None:
+ if not value:
buffer = buffer + str(key) + " "
elif isinstance(value, list):
# this value is an array, so we print out every
--
1.6.6.1
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler