diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-07-08 11:05:03 +0000 |
---|---|---|
committer | João Cunha <j.a.cunha@gmail.com> | 2019-07-08 11:05:03 +0000 |
commit | 6e6f56492370734a23fe2a414944966fc588ceb2 (patch) | |
tree | 1cd68faabaf54a8eaac12fddc4303957b67f3af7 | |
parent | 75e0283ead95b9b623f5056bd066ad64fc1cb0a0 (diff) | |
download | gitlab-ce-6e6f56492370734a23fe2a414944966fc588ceb2.tar.gz |
Apply suggestion to app/models/clusters/applications/runner.rb
-rw-r--r-- | app/models/clusters/applications/runner.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/clusters/applications/runner.rb b/app/models/clusters/applications/runner.rb index 9314d795950..9074a2638ec 100644 --- a/app/models/clusters/applications/runner.rb +++ b/app/models/clusters/applications/runner.rb @@ -41,8 +41,9 @@ module Clusters end def prepare_uninstall - runner.builds.cancelable.each(&:cancel) - runner.update(active: false) + runner.builds.cancelable.each(&:cancel!) + + runner.update!(active: false) end def post_uninstall |