diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-21 23:01:00 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-21 23:01:00 +0100 |
commit | 63b495dfef8249e173fc26df0010b5ba8d6143a7 (patch) | |
tree | 27123ebfdfa40eae24ff29d0810a6fc018b5f9ed | |
parent | dabe71d35f521aafc0df614b021e9e3ae94e2289 (diff) | |
download | govuk-mini-environment-admin-63b495dfef8249e173fc26df0010b5ba8d6143a7.tar govuk-mini-environment-admin-63b495dfef8249e173fc26df0010b5ba8d6143a7.tar.gz |
Fix an issue with symbol keys in GovukGuix::Job
-rw-r--r-- | app/jobs/govuk_guix/job.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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}"] |