aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-03 22:04:20 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-03 22:04:20 +0100
commit0969eff03b8f6cd6b22090dda3dd99044f9b9a39 (patch)
treebc00461273c76eedd73082ca2a654f334ec583cd
parentde900ba3bd3b9b5e63492bd66ccf4986fa2b1d1b (diff)
downloadgovuk-mini-environment-admin-0969eff03b8f6cd6b22090dda3dd99044f9b9a39.tar
govuk-mini-environment-admin-0969eff03b8f6cd6b22090dda3dd99044f9b9a39.tar.gz
Fix a bug in GovukGuix::Job
Actually parse the JSON file when fetching it from a remote host.
-rw-r--r--app/jobs/govuk_guix/job.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jobs/govuk_guix/job.rb b/app/jobs/govuk_guix/job.rb
index f296edf..fdac507 100644
--- a/app/jobs/govuk_guix/job.rb
+++ b/app/jobs/govuk_guix/job.rb
@@ -74,7 +74,7 @@ class GovukGuix::Job < Que::Job
raise "Running #{command.join(' ')} failed:\n\n#{output.join}\n"
end
- stdout_str
+ JSON.parse(stdout_str)
else
JSON.parse(File.read(filename))
end