Force memcache_servers to be a plain array
authorTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:59:39 +0000 (11:59 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:59:39 +0000 (11:59 +0000)
cookbooks/web/resources/rails_port.rb

index 598c757..90f3639 100644 (file)
@@ -290,7 +290,6 @@ action :create do
     "attachments_dir",
     "log_path",
     "logstash_path",
-    "memcache_servers",
     "potlatch2_key",
     "id_key",
     "oauth_key",
@@ -322,6 +321,10 @@ action :create do
     "trace_use_job_queue" => false
   )
 
+  if new_resource.memcache_servers
+    settings["memcache_servers"] = new_resource.memcache_servers.to_a
+  end
+
   if new_resource.gpx_dir
     settings["gpx_trace_dir"] = "#{new_resource.gpx_dir}/traces"
     settings["gpx_image_dir"] = "#{new_resource.gpx_dir}/images"