Fix deprecation warnings in inline templates

The puppet-swift modules emit deprecation warnings of the form:

Warning: Variable access via 'pipeline' is deprecated. Use
  '@pipeline' instead. template[inline]:2
   (at (erb):2:in `result')

These are due to missing @ signs in inline ERB templates in
storage/server.pp and proxy.pp.  This patch fixes them.

Change-Id: I3745cfd86c4332f00bc10a0999088691b3833147
Closes-Bug: #1282717
This commit is contained in:
Mark T. Voelker 2014-02-20 13:27:56 -05:00
parent d8430ea6ad
commit edd25ce6b3
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class swift::proxy(
$required_classes = split(
inline_template(
"<%=
(pipeline - ['proxy-server']).collect do |x|
(@pipeline - ['proxy-server']).collect do |x|
'swift::proxy::' + x.gsub(/-/){ %q(_) }
end.join(',')
%>"), ',')

View File

@ -63,7 +63,7 @@ define swift::storage::server(
$required_middlewares = split(
inline_template(
"<%=
(pipeline - ['${type}-server']).collect do |x|
(@pipeline - ['${type}-server']).collect do |x|
'Swift::Storage::Filter::' + x.capitalize + '[${type}]'
end.join(',')
%>"), ',')