From b7c8519cd46e1855a824b5b97791c518f3ceb72f Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Wed, 18 May 2022 17:47:49 -0400 Subject: [PATCH] Do not raise an error when calling resource_id if @connection is nil Signed-off-by: Robert Clark --- libraries/gcp_backend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gcp_backend.rb b/libraries/gcp_backend.rb index 0b8a63c22..bb15f9ab5 100644 --- a/libraries/gcp_backend.rb +++ b/libraries/gcp_backend.rb @@ -30,7 +30,7 @@ def failed_resource? end def resource_id - @connection.resource_id + @connection&.resource_id end # Intercept GCP exceptions