From 63b495dfef8249e173fc26df0010b5ba8d6143a7 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 21 Jun 2018 23:01:00 +0100 Subject: Fix an issue with symbol keys in GovukGuix::Job --- app/jobs/govuk_guix/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/jobs') diff --git a/app/jobs/govuk_guix/job.rb b/app/jobs/govuk_guix/job.rb index 357c8ca..5f95f4d 100644 --- a/app/jobs/govuk_guix/job.rb +++ b/app/jobs/govuk_guix/job.rb @@ -82,7 +82,7 @@ class GovukGuix::Job < Que::Job def hash_to_arguments(hash) hash.flat_map do |(key, value)| - transformed_key = key.tr('_', '-') + transformed_key = key.to_s.tr('_', '-') if value == true ["--#{transformed_key}"] -- cgit v1.2.3