From 4c47494faacac70f66b6d1703f35182ea5486d99 Mon Sep 17 00:00:00 2001 From: RedRampage Date: Tue, 30 Jun 2015 12:17:16 +0300 Subject: [PATCH] Fixed bug with host-name option --- templates/etc/dhcp/macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/dhcp/macros.j2 b/templates/etc/dhcp/macros.j2 index 0b87a1a..3a02a84 100644 --- a/templates/etc/dhcp/macros.j2 +++ b/templates/etc/dhcp/macros.j2 @@ -139,7 +139,7 @@ host {{ host.hostname }}-hw{{ loop.index }} { {% endif %} hardware ethernet {{ hwaddr }}; {% if not host.options is defined or (host.options and not 'host-name' in host.options) %} - option host-name = {{ host.hostname }}; + option host-name "{{ host.hostname }}"; {% endif %} {% if host.address is defined and host.address %} fixed-address {{ host.address }};