From ee9523bb8169f4aaaa05b3cf5b46f4097f48f8f0 Mon Sep 17 00:00:00 2001 From: Tina Fitzgerald Date: Tue, 6 Mar 2018 10:25:25 -0500 Subject: [PATCH] Creating request task instances message is misleading because request tasks will not be created if quota is denied. Moved message. --- app/models/miq_request.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/miq_request.rb b/app/models/miq_request.rb index 23aaaa7fa32..08f0923a9a1 100644 --- a/app/models/miq_request.rb +++ b/app/models/miq_request.rb @@ -404,10 +404,10 @@ def execute end def create_request_tasks - _log.info("Creating request task instances for: <#{description}>...") - + # Quota denial will result in automate_event_failed? being true return if automate_event_failed?("request_starting") + _log.info("Creating request task instances for: <#{description}>...") # Create a MiqRequestTask object for each requested item options[:delivered_on] = Time.now.utc update_attribute(:options, options)