aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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+$'])