Skip to content

Commit ba2649d

Browse files
author
Patrick Robinson
committed
Fix missed conversions from OpenStruct to Hash
1 parent bf386d1 commit ba2649d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/models/git_repository.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def capture_stdout(*command, dir: repo_cache_dir)
187187
*command,
188188
whitelist_env: ['HOME', 'PATH'],
189189
timeout: 30.minutes,
190-
err: '/dev/null',
191190
dir: dir
192191
)
193192
unless result[:status]

plugins/gcloud/lib/samson_gcloud/tag_resolver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def resolve_docker_image_tag(image)
1717
whitelist_env: ["PATH"]
1818
)
1919
raise "GCLOUD ERROR: unable to resolve #{image}\n#{result[:error]}" unless result[:status]
20-
digest = JSON.parse(result.output).dig_fetch("image_summary", "digest")
20+
digest = JSON.parse(result[:output]).dig_fetch("image_summary", "digest")
2121

2222
base = image.split(":", 2).first
2323
"#{base}@#{digest}"

test/lib/samson/command_executor_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
it "runs in specified directory" do
2525
Dir.mktmpdir("foobar") do |dir|
26-
Samson::CommandExecutor.execute("pwd", timeout: 1, dir: dir).output.must_include dir
26+
Samson::CommandExecutor.execute("pwd", timeout: 1, dir: dir)[:output].must_include dir
2727
end
2828
end
2929

0 commit comments

Comments
 (0)