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