Skip to content

Commit

Permalink
Fix call to Google::Apis::ComputeV1::Instance.new() to work on Ruby 3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
silug authored Jun 6, 2024
1 parent 3eddb6f commit 5a8ef9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beaker/hypervisor/google_compute_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def create_instance(name, img, machine_type, disk_size, hostname)
instance_opts[:hostname] = valid_hostname
end

new_instance = ::Google::Apis::ComputeV1::Instance.new(instance_opts)
new_instance = ::Google::Apis::ComputeV1::Instance.new(**instance_opts)

operation = @compute.insert_instance(@options[:gce_project], @options[:gce_zone], new_instance)
@compute.wait_zone_operation(@options[:gce_project], @options[:gce_zone], operation.name)
Expand Down

0 comments on commit 5a8ef9e

Please sign in to comment.