Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/clusters/cleanup/service_account_service.rb')
-rw-r--r--app/services/clusters/cleanup/service_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/clusters/cleanup/service_account_service.rb b/app/services/clusters/cleanup/service_account_service.rb
index dce41d2a39c..0ce4bf9bb9c 100644
--- a/app/services/clusters/cleanup/service_account_service.rb
+++ b/app/services/clusters/cleanup/service_account_service.rb
@@ -27,7 +27,7 @@ module Clusters
rescue Kubeclient::HttpError => e
# unauthorized, forbidden: GitLab's access has been revoked
# certificate verify failed: Cluster is probably gone forever
- raise unless e.message =~ /unauthorized|forbidden|certificate verify failed/i
+ raise unless /unauthorized|forbidden|certificate verify failed/i.match?(e.message)
end
end
end