Commit 0fd100d2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve setting default runner attrs when using API

parent f6dd8a52
......@@ -29,8 +29,11 @@ module Ci
required_attributes! [:token]
attributes = { description: params[:description],
tag_list: params[:tag_list],
run_untagged: params[:run_untagged] || true }
tag_list: params[:tag_list] }
unless params[:run_untagged].nil?
attributes.merge!(run_untagged: params[:run_untagged])
end
runner =
if runner_registration_token_valid?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment