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:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-10 17:23:22 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-10 17:23:22 +0300
commitcf6258af41cee0638665560509c87bb49135081d (patch)
tree87f1c1f9ba9ad57573eb6805ae5e98fbc4552939 /app/workers
parentb44583e9c6a00c689be398fee54b24a6dab019a6 (diff)
Fix billing checking
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/check_gcp_project_billing_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/check_gcp_project_billing_worker.rb b/app/workers/check_gcp_project_billing_worker.rb
index 557af14ee57..6a0d8ab263f 100644
--- a/app/workers/check_gcp_project_billing_worker.rb
+++ b/app/workers/check_gcp_project_billing_worker.rb
@@ -23,13 +23,13 @@ class CheckGcpProjectBillingWorker
end
def self.redis_shared_state_key_for(token)
- "gitlab:gcp:#{token.hash}:billing_enabled"
+ "gitlab:gcp:#{Digest::SHA1.hexdigest(token)}:billing_enabled"
end
def perform(token_key)
return unless token_key
- token = self.get_session_token(token_key)
+ token = self.class.get_session_token(token_key)
return unless token
return unless try_obtain_lease_for(token)