From a29e1f9645726799d2ecd987a51ce75228c6fb8f Mon Sep 17 00:00:00 2001 From: Uwe Kretschmer Date: Thu, 3 Mar 2016 16:09:36 +0100 Subject: [PATCH] Fixed typo and indentation. --- dhcpd/files/dhcpd.conf | 8 ++++---- dhcpd/files/subnet.jinja | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dhcpd/files/dhcpd.conf b/dhcpd/files/dhcpd.conf index 34bd184..6fbb01a 100644 --- a/dhcpd/files/dhcpd.conf +++ b/dhcpd/files/dhcpd.conf @@ -32,10 +32,10 @@ default-lease-time {{ salt['pillar.get']('dhcpd:default_lease_time') }}; {% if salt['pillar.get']('dhcpd:max_lease_time', False) -%} max-lease-time {{ salt['pillar.get']('dhcpd:max_lease_time') }}; {% endif -%} -{%- if salt['pillar.get']('dhcp:allow', False) %} -allow {{ salt['pillar.get']('dhcp:allow') }}; -{%- elif salt['pillar.get']('dhcp:deny', False) %} -deny {{ salt['pillar.get']('dhcp:deny') }}; +{%- if salt['pillar.get']('dhcpd:allow', False) %} +allow {{ salt['pillar.get']('dhcpd:allow') }}; +{%- elif salt['pillar.get']('dhcpd:deny', False) %} +deny {{ salt['pillar.get']('dhcpd:deny') }}; {%- endif %} diff --git a/dhcpd/files/subnet.jinja b/dhcpd/files/subnet.jinja index f300f30..ce4c0fd 100644 --- a/dhcpd/files/subnet.jinja +++ b/dhcpd/files/subnet.jinja @@ -5,9 +5,9 @@ {%- endif %} {{ intendation }}subnet {{ subnet }} netmask {{ config.netmask }} { {%- if config.has_key('allow') %} -allow {{ config.allow }}; +{{ intendation }} allow {{ config.allow }}; {%- elif config.has_key('deny') %} -deny {{ config.deny }}; +{{ intendation }} deny {{ config.deny }}; {%- endif %} {%- if config.has_key('range') %} {%- if config.has_key('dynamic_bootp') and config.dynamic_bootp %}