summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 16:46:26 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 16:46:26 +0200
commite01300ddb0f8a910ac34329a6dabe83b3cbdc69d (patch)
tree3cd5b07fa208a49f85bb866036f3a1e6451dcbf6
parent7348d34cfdb50c1cc3efa2debb093e8019752ac2 (diff)
downloadgitlab-ce-e01300ddb0f8a910ac34329a6dabe83b3cbdc69d.tar.gz
Fix update_runner_info helper
-rw-r--r--lib/ci/api/helpers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index 9197f917d73..e602cda81d6 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -1,6 +1,8 @@
module Ci
module API
module Helpers
+ UPDATE_RUNNER_EVERY = 60
+
def authenticate_runners!
forbidden! unless params[:token] == GitlabCi::REGISTRATION_TOKEN
end