Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/ci/runner/update.rb')
-rw-r--r--app/graphql/mutations/ci/runner/update.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/mutations/ci/runner/update.rb b/app/graphql/mutations/ci/runner/update.rb
index f98138646be..2f2c8c4c668 100644
--- a/app/graphql/mutations/ci/runner/update.rb
+++ b/app/graphql/mutations/ci/runner/update.rb
@@ -94,6 +94,7 @@ module Mutations
).execute
return if result.success?
+ response[:runner] = nil
response[:errors] = result.errors
raise ActiveRecord::Rollback
end
@@ -102,6 +103,7 @@ module Mutations
result = ::Ci::Runners::UpdateRunnerService.new(runner).execute(attrs)
return if result.success?
+ response[:runner] = nil
response[:errors] = result.errors
raise ActiveRecord::Rollback
end