Skip to content

Commit

Permalink
Adding a comment for the param parameters including #243 and acceptin…
Browse files Browse the repository at this point in the history
…g ekohl suggestion, ommited the if statement
  • Loading branch information
AstritSinani2 committed May 28, 2020
1 parent fda240b commit d01d98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions manifests/host.pp
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions templates/dhcpd.host.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d01d98e

Please sign in to comment.