aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 11:05:42 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 11:05:42 +0200
commit558df46dc9bec98c6c90719d9aed11ec7a338411 (patch)
treef790e635bfafd92e914ee200c58884b33b681a78 /templates
parentf28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be (diff)
downloadpuppet-dhcp-558df46dc9bec98c6c90719d9aed11ec7a338411.tar.gz
puppet-dhcp-558df46dc9bec98c6c90719d9aed11ec7a338411.tar.bz2
Simplify template
Diffstat (limited to 'templates')
-rw-r--r--templates/host.conf.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/host.conf.erb b/templates/host.conf.erb
index 398d798..1c690b4 100644
--- a/templates/host.conf.erb
+++ b/templates/host.conf.erb
@@ -1,6 +1,5 @@
<%- @hash_data.sort.each do |host, data|
- scope.function_validate_hash([data]) -%>
-<%-
+ scope.function_validate_hash([data])
raise Puppet::ParseError, "Missing interfaces hash for host '#{host}'" unless data.has_key? 'interfaces'
data.fetch('interfaces').sort.each do |if_name, if_mac|
scope.function_validate_re([if_name, '^\S+$'])