summaryrefslogtreecommitdiff
path: root/lib/ci/api
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-11 14:43:44 +0100
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-11 14:43:44 +0100
commit6b0c0d5bcc7940c7d84b8af965b2c4f9ceeb4175 (patch)
treef527119ca6c43f190bbaaef4dc277808ca24a009 /lib/ci/api
parent917effb7379f8e871dbc113d7c7dab89473d4bc8 (diff)
downloadgitlab-ce-6b0c0d5bcc7940c7d84b8af965b2c4f9ceeb4175.tar.gz
Ensure that runners registration token is present
Diffstat (limited to 'lib/ci/api')
-rw-r--r--lib/ci/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index 12d7396189d..abd1869efc0 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -23,7 +23,7 @@ module Ci
end
def runner_registration_token_valid?
- params[:token] == current_application_settings.runners_registration_token
+ params[:token] == current_application_settings.ensure_runners_registration_token
end
def update_runner_last_contact