Skip to content

Commit

Permalink
Fix missed conversions from OpenStruct to Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Robinson committed Mar 12, 2020
1 parent bf386d1 commit 946358c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/git_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def capture_stdout(*command, dir: repo_cache_dir)
*command,
whitelist_env: ['HOME', 'PATH'],
timeout: 30.minutes,
err: '/dev/null',
dir: dir
)
unless result[:status]
Expand Down
2 changes: 1 addition & 1 deletion plugins/gcloud/lib/samson_gcloud/tag_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def resolve_docker_image_tag(image)
whitelist_env: ["PATH"]
)
raise "GCLOUD ERROR: unable to resolve #{image}\n#{result[:error]}" unless result[:status]
digest = JSON.parse(result.output).dig_fetch("image_summary", "digest")
digest = JSON.parse(result[:output]).dig_fetch("image_summary", "digest")

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

0 comments on commit 946358c

Please sign in to comment.