summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-28 09:05:44 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-28 09:05:44 -0400
commitdd381ffc395bd6c6405e15aa5baeb3d3645dec70 (patch)
tree2b313a7f68482276f5d4c62ac9e1b23c19b22744 /cobbler
parent9f314143b39edfa0943c68158d1ae954af4f4f86 (diff)
downloadthird_party-cobbler-dd381ffc395bd6c6405e15aa5baeb3d3645dec70.tar.gz
third_party-cobbler-dd381ffc395bd6c6405e15aa5baeb3d3645dec70.tar.xz
third_party-cobbler-dd381ffc395bd6c6405e15aa5baeb3d3645dec70.zip
Quote dhcp hostnames
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/dhcpgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/dhcpgen.py b/cobbler/dhcpgen.py
index 0ec3dda..2d6facf 100644
--- a/cobbler/dhcpgen.py
+++ b/cobbler/dhcpgen.py
@@ -110,7 +110,7 @@ class DHCPGen:
if host is not None and host != "":
systxt = "\nhost %s {\n" % host
if self.settings.isc_set_host_name:
- systxt = systxt + " option host-name = %s;\n" % host
+ systxt = systxt + " option host-name = \"%s\";\n" % host
else:
systxt = "\nhost generic%d {\n" % counter