diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:46:26 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:46:26 +0300 |
commit | e01300ddb0f8a910ac34329a6dabe83b3cbdc69d (patch) | |
tree | 3cd5b07fa208a49f85bb866036f3a1e6451dcbf6 | |
parent | 7348d34cfdb50c1cc3efa2debb093e8019752ac2 (diff) |
Fix update_runner_info helper
-rw-r--r-- | lib/ci/api/helpers.rb | 2 |
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 |