summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-07-11 09:13:28 +0000
committerRémy Coutable <remy@rymai.me>2018-07-11 09:13:28 +0000
commit068defa7505126fc80b5a1f23a5634148e09eb67 (patch)
treef10c2403c260a02c7815da171c3849724f1677e7 /lib/api/runners.rb
parente68a547bc790d44a1df3c9ae8b07b004ab8dd47e (diff)
downloadgitlab-ce-068defa7505126fc80b5a1f23a5634148e09eb67.tar.gz
Add missing maximum_timeout parameter
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 2071c5a62c1..51242341dba 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -58,7 +58,7 @@ module API
optional :access_level, type: String, values: Ci::Runner.access_levels.keys,
desc: 'The access_level of the runner'
optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job'
- at_least_one_of :description, :active, :tag_list, :run_untagged, :locked, :access_level
+ at_least_one_of :description, :active, :tag_list, :run_untagged, :locked, :access_level, :maximum_timeout
end
put ':id' do
runner = get_runner(params.delete(:id))