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 90f3639..de6f97a 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",