From d01d98ea4d7ded2deded5d187dd3b17a08df8e43 Mon Sep 17 00:00:00 2001 From: Astrit Sinani Date: Thu, 28 May 2020 18:25:32 +0200 Subject: [PATCH] Adding a comment for the param parameters including #243 and accepting ekohl suggestion, ommited the if statement --- manifests/host.pp | 1 + templates/dhcpd.host.erb | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/manifests/host.pp b/manifests/host.pp index 2e9726128..8108778ea 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -1,5 +1,6 @@ # == Define: dhcp::host # +# @param parameters used for setting different parameters like e.g next-server declarition, filename for the host define dhcp::host ( Optional[Stdlib::IP::Address] $ip = undef, Dhcp::Mac $mac, diff --git a/templates/dhcpd.host.erb b/templates/dhcpd.host.erb index 57eac1219..bebc9a3a0 100644 --- a/templates/dhcpd.host.erb +++ b/templates/dhcpd.host.erb @@ -21,10 +21,8 @@ host <%= @host %> { option <%= option %> <%= @options[option] %>; <% end -%> <% end -%> -<% if not @parameters.empty? -%> <% @parameters.sort.each do |param, value| -%> - <%= param %> <%= @parameters[param] %>; -<% end -%> + <%= param %> <%= value %>; <% end -%> <% if not @on_commit.empty? -%> on commit {