Skip to content

Commit 5437c3a

Browse files
committed
Merge pull request redhat-openstack#40 from misterdorm/template_to_s
explicitly calling to_s on parameters that could potentially be a numeri...
2 parents 2f5cf83 + 2200af3 commit 5437c3a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templates/memcached_sysconfig.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CACHESIZE="<%= scope.function_memcached_max_memory([@max_memory]) %>"
66
OPTIONS="<%
77
result = []
88
if @verbosity
9-
result << '-' + @verbosity
9+
result << '-' + @verbosity.to_s
1010
end
1111
if @lock_memory
1212
result << '-k'
@@ -15,10 +15,10 @@ if @listen_ip
1515
result << '-l ' + @listen_ip
1616
end
1717
if @udp_port
18-
result << '-U ' + @udp_port
18+
result << '-U ' + @udp_port.to_s
1919
end
2020
if @item_size
21-
result << '-I ' + @item_size
21+
result << '-I ' + @item_size.to_s
2222
end
2323
result << '-t ' + @processorcount
2424
-%><%= result.join(' ') -%>"

0 commit comments

Comments
 (0)