diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 21:10:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 21:10:38 +0000 |
commit | 3b69a04945341516a2ed6a291769c50fe04336df (patch) | |
tree | 5910b5f0c80bf98aded05305bbaa7fd30d2742c4 /app/graphql/mutations/ci/runner | |
parent | e4cfc16da343c2008053ee09bb6af7145a6924cb (diff) | |
download | gitlab-ce-3b69a04945341516a2ed6a291769c50fe04336df.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/mutations/ci/runner')
-rw-r--r-- | app/graphql/mutations/ci/runner/update.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/graphql/mutations/ci/runner/update.rb b/app/graphql/mutations/ci/runner/update.rb index 1c6cf6989bf..203cd44bc84 100644 --- a/app/graphql/mutations/ci/runner/update.rb +++ b/app/graphql/mutations/ci/runner/update.rb @@ -59,9 +59,8 @@ module Mutations def resolve(id:, **runner_attrs) runner = authorized_find!(id) - unless ::Ci::Runners::UpdateRunnerService.new(runner).update(runner_attrs) - return { runner: nil, errors: runner.errors.full_messages } - end + result = ::Ci::Runners::UpdateRunnerService.new(runner).execute(runner_attrs) + return { runner: nil, errors: result.errors } if result.error? { runner: runner, errors: [] } end |