]> git.openstreetmap.org Git - chef.git/commitdiff
Ignore properties with no value
authorTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 12:03:28 +0000 (12:03 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 12:03:28 +0000 (12:03 +0000)
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",