diff --git a/manifests/iface.pp b/manifests/iface.pp
index 8790aa5..006831b 100644
--- a/manifests/iface.pp
+++ b/manifests/iface.pp
@@ -31,6 +31,6 @@
 
   concat::fragment{"interfaces::iface_${name}":
     target  => '/etc/network/interfaces',
-    content => inline_template("iface <%= ifname_real -%> <%= family -%> <%= method -%>\n\t<%= options.join('\n\t') -%>\n\n"),
+    content => inline_template("iface <%= @ifname_real %> <%= @family %> <%= @method %>\n\t<%= @options.join('\n\t') %>\n\n"),
   }
 }
diff --git a/manifests/mapping.pp b/manifests/mapping.pp
index 12247d0..7087e4c 100644
--- a/manifests/mapping.pp
+++ b/manifests/mapping.pp
@@ -1,6 +1,6 @@
 define interfaces::mapping ( $script, $maps ) {
   concat::fragment{"interfaces::mapping_${name}":
     target  => '/etc/network/interfaces',
-    content => inline_template("mapping <%= name -%>\n\tscript <%= script -%>\n\t<%= maps.join('\n\t') -%>\n\n"),
+    content => inline_template("mapping <%= @name %>\n\tscript <%= @script %>\n\t<%= @maps.join('\n\t') %>\n\n"),
   }
 }