summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-10 15:23:22 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-10 15:23:22 +0100
commitcf6258af41cee0638665560509c87bb49135081d (patch)
tree87f1c1f9ba9ad57573eb6805ae5e98fbc4552939 /app/workers
parentb44583e9c6a00c689be398fee54b24a6dab019a6 (diff)
downloadgitlab-ce-cf6258af41cee0638665560509c87bb49135081d.tar.gz
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)