]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/resources/rails_port.rb
Ignore properties with no value
[chef.git] / cookbooks / web / resources / rails_port.rb
index 90f36397e85a981f9e2b6bd8d755d3a407751388..de6f97ad8ae4936d8ba412e985839fe3fcc4b9ef 100644 (file)
@@ -310,7 +310,7 @@ action :create do
     "totp_key",
     "csp_enforce",
     "csp_report_url"
-  ).merge(
+  ).reject { |_k, v| v.nil? }.merge(
     "server_protocol" => "https",
     "server" => new_resource.site,
     "publisher_url" => "https://plus.google.com/111953119785824514010",