diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-05-09 14:13:54 +0200 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-05-09 14:13:54 +0200 |
commit | 8516e3a4b7b62027ee80853008f53517374ff105 (patch) | |
tree | a629fc8f5621545b968d52e2f0df2e94a265dea5 /lib | |
parent | b63cd070b592559d86205708eaa3feb788dac921 (diff) | |
download | gitlab-ce-8516e3a4b7b62027ee80853008f53517374ff105.tar.gz |
Support 'active' setting on Runner Registration API endpoint
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/runner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index cd7d6603171..649feba1036 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -11,13 +11,14 @@ module API requires :token, type: String, desc: 'Registration token' optional :description, type: String, desc: %q(Runner's description) optional :info, type: Hash, desc: %q(Runner's metadata) + optional :active, type: Boolean, desc: 'Should Runner be active' optional :locked, type: Boolean, desc: 'Should Runner be locked for current project' optional :run_untagged, type: Boolean, desc: 'Should Runner handle untagged jobs' optional :tag_list, type: Array[String], desc: %q(List of Runner's tags) optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job' end post '/' do - attributes = attributes_for_keys([:description, :locked, :run_untagged, :tag_list, :maximum_timeout]) + attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :maximum_timeout]) .merge(get_runner_details_from_request) runner = |