Skip to content

Commit

Permalink
Merge pull request redhat-openstack#40 from misterdorm/template_to_s
Browse files Browse the repository at this point in the history
explicitly calling to_s on parameters that could potentially be a numeri...
  • Loading branch information
saz committed Jun 22, 2014
2 parents 2f5cf83 + 2200af3 commit 5437c3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/memcached_sysconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CACHESIZE="<%= scope.function_memcached_max_memory([@max_memory]) %>"
OPTIONS="<%
result = []
if @verbosity
result << '-' + @verbosity
result << '-' + @verbosity.to_s
end
if @lock_memory
result << '-k'
Expand All @@ -15,10 +15,10 @@ if @listen_ip
result << '-l ' + @listen_ip
end
if @udp_port
result << '-U ' + @udp_port
result << '-U ' + @udp_port.to_s
end
if @item_size
result << '-I ' + @item_size
result << '-I ' + @item_size.to_s
end
result << '-t ' + @processorcount
-%><%= result.join(' ') -%>"

0 comments on commit 5437c3a

Please sign in to comment.