diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-14 12:14:02 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-14 12:14:02 +0000 |
commit | 2896c7471aa75a7842fe6318a122f83ca6c211bb (patch) | |
tree | 5da5605d7632d654cf70a3bbfbf32dc12178fa04 /app/graphql/mutations/ci/runner/delete.rb | |
parent | 41482e5dce6765dc2ec019da1c652061fc8d8f83 (diff) | |
download | gitlab-ce-2896c7471aa75a7842fe6318a122f83ca6c211bb.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/mutations/ci/runner/delete.rb')
-rw-r--r-- | app/graphql/mutations/ci/runner/delete.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/mutations/ci/runner/delete.rb b/app/graphql/mutations/ci/runner/delete.rb index 88dc426398b..21c3d55881c 100644 --- a/app/graphql/mutations/ci/runner/delete.rb +++ b/app/graphql/mutations/ci/runner/delete.rb @@ -20,7 +20,7 @@ module Mutations error = authenticate_delete_runner!(runner) return { errors: [error] } if error - runner.destroy! + ::Ci::UnregisterRunnerService.new(runner).execute { errors: runner.errors.full_messages } end |