From 5f3a4dfc33f2d604b12c89af121b3bad00ef975c Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Thu, 6 Jun 2024 13:28:38 -0500 Subject: [PATCH] Fix call to Google::Apis::ComputeV1::Instance.new() to work on Ruby 3 --- lib/beaker/hypervisor/google_compute_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/beaker/hypervisor/google_compute_helper.rb b/lib/beaker/hypervisor/google_compute_helper.rb index 52ccf43..0ebece0 100644 --- a/lib/beaker/hypervisor/google_compute_helper.rb +++ b/lib/beaker/hypervisor/google_compute_helper.rb @@ -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)