From cdac3d4b35d8fda5da0edac7e63041223ccb6d2b Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Wed, 14 Feb 2024 11:33:30 +0000 Subject: [PATCH] Support Ruby 3.0 --- app/lib/foreman_google/google_compute_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/foreman_google/google_compute_adapter.rb b/app/lib/foreman_google/google_compute_adapter.rb index e8e5108..dbf1526 100644 --- a/app/lib/foreman_google/google_compute_adapter.rb +++ b/app/lib/foreman_google/google_compute_adapter.rb @@ -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