summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-09 16:12:10 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-09 16:12:10 -0500
commit7a38e128564200c31a4249f9f63828b027e6b593 (patch)
tree1b758827becd3140c9ce076046bfc15b489566b2 /cobbler/utils.py
parent2d710af47fa757350f999b73ca669152c6896979 (diff)
downloadthird_party-cobbler-7a38e128564200c31a4249f9f63828b027e6b593.tar.gz
third_party-cobbler-7a38e128564200c31a4249f9f63828b027e6b593.tar.xz
third_party-cobbler-7a38e128564200c31a4249f9f63828b027e6b593.zip
Added a parameter --yumopts which allows setting parameters for yum plugins in a manner
similar to how --kopts and --ksmeta works.
Diffstat (limited to 'cobbler/utils.py')
-rw-r--r--cobbler/utils.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 13503e5..20a5d67 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -21,7 +21,6 @@ import sub_process
import shutil
import string
import traceback
-import logging
from cexceptions import *
from rhpl.translate import _, N_, textdomain, utf8
@@ -338,13 +337,12 @@ def flatten(data):
# this should not be done for everything
if data.has_key("kernel_options"):
data["kernel_options"] = hash_to_string(data["kernel_options"])
- # FIXME: why do we flatten this?
+ if data.has_key("yumopts"):
+ data["yumopts"] = hash_to_string(data["yumopts"])
if data.has_key("ks_meta"):
data["ks_meta"] = hash_to_string(data["ks_meta"])
- # FIXME: why do we flatten this?
if data.has_key("repos") and type(data["repos"]) == list:
data["repos"] = " ".join(data["repos"])
- # FIXME: why do we flatten this?
if data.has_key("rpm_list") and type(data["rpm_list"]) == list:
data["rpm_list"] = " ".join(data["rpm_list"])