Skip to content

Commit

Permalink
Test on Ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Jan 26, 2024
1 parent 3b8a8c0 commit 1966446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ jobs:
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: foreman_google
# https://github.com/theforeman/foreman/pull/9989
foreman_repository: ofedoren/foreman
foreman_version: foreman-on-ruby-3-letsgooo
4 changes: 2 additions & 2 deletions app/lib/foreman_google/google_compute_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def insert_instance(zone, attrs = {})
operation_attrs = { zone: zone, operation: response.operation.id.to_s }

wait_for do
get('zone_operations', operation_attrs).status == :DONE
get('zone_operations', **operation_attrs).status == :DONE
end

e = get('zone_operations', operation_attrs).error
e = get('zone_operations', **operation_attrs).error

return response unless e

Expand Down

0 comments on commit 1966446

Please sign in to comment.