]> gitweb.fluxo.info Git - puppet-virtual.git/commitdiff
Check if memory_limit is available on templates
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Sep 2015 16:07:07 +0000 (13:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Sep 2015 16:07:07 +0000 (13:07 -0300)
templates/rss.hard.erb
templates/rss.soft.erb

index 31a80309327750da508d8f22b1bca73220121f61..357dbacde1b769f921514b165740e374268faea5 100644 (file)
@@ -1 +1 @@
-<%= memory_limit.to_i * 1_000_000 / 4096 %>
+<%= memory_limit.to_i * 1_000_000 / 4096 if defined?(memory_limit) %>
index 31a80309327750da508d8f22b1bca73220121f61..357dbacde1b769f921514b165740e374268faea5 100644 (file)
@@ -1 +1 @@
-<%= memory_limit.to_i * 1_000_000 / 4096 %>
+<%= memory_limit.to_i * 1_000_000 / 4096 if defined?(memory_limit) %>