summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2015-12-23 10:48:10 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2015-12-23 11:45:17 +0100
commit3e6950481a90a83f183397f11b8f2a5d21233cfb (patch)
tree75752ade976609ad1043c3ae180c6a0de1d9882f /lib/ci
parent37731ba1a1a926f1e4bd6dc620066822f3a4b0da (diff)
downloadgitlab-ce-3e6950481a90a83f183397f11b8f2a5d21233cfb.tar.gz
Use method that creates runners registration token
`runners_registration_token` now creates a new token if it is blank.
Diffstat (limited to 'lib/ci')
-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 443563c2e4a..1c91204e98c 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -19,7 +19,7 @@ module Ci
end
def runner_registration_token_valid?
- params[:token] == current_application_settings.ensure_runners_registration_token
+ params[:token] == current_application_settings.runners_registration_token
end
def update_runner_last_contact