From b187c4386489bad86797c799f41b4e96be554059 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 28 Mar 2018 09:27:10 -0400 Subject: [PATCH] Don't ignore errors in Vm#running_processes The Vm#running_processes method currently logs all errors/exceptions instead of raising them up. This causes the tasks to look like they were successful even though there are warnings in the log about mis-configuration which should be corrected by the user. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1534023 --- app/models/vm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/vm.rb b/app/models/vm.rb index 067349fc836..2ac363c6e5c 100644 --- a/app/models/vm.rb +++ b/app/models/vm.rb @@ -76,7 +76,7 @@ def running_processes check = validate_collect_running_processes unless check[:message].nil? _log.warn(check[:message].to_s) - return pl + raise check[:message].to_s end begin