diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-22 17:03:00 +1100 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-28 11:54:37 +1100 |
commit | b5a5fdf0e3b97622789db444bf0bf697e78dbb47 (patch) | |
tree | cd91aeed35c2d88f916ba63f82f5f49aed8c8c3d /lib/api/runner.rb | |
parent | 0be4a77d0012613f960c4177f53101c46de2899c (diff) | |
download | gitlab-ce-b5a5fdf0e3b97622789db444bf0bf697e78dbb47.tar.gz |
Persist runner IP address on contact (#43489)
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r-- | lib/api/runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index 5469cba69a6..91cdc564002 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -16,7 +16,8 @@ module API optional :tag_list, type: Array[String], desc: %q(List of Runner's tags) end post '/' do - attributes = attributes_for_keys [:description, :locked, :run_untagged, :tag_list] + attributes = attributes_for_keys([:description, :locked, :run_untagged, :tag_list]) + .merge(get_runner_details_from_request) runner = if runner_registration_token_valid? @@ -30,7 +31,6 @@ module API return forbidden! unless runner if runner.id - runner.update(get_runner_version_from_params) present runner, with: Entities::RunnerRegistrationDetails else not_found! |