Skip to content

Commit

Permalink
Creating request task instances message is misleading because request
Browse files Browse the repository at this point in the history
tasks will not be created if quota is denied. Moved message.
  • Loading branch information
tinaafitz committed Mar 6, 2018
1 parent 7c7c0c1 commit ee9523b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/miq_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee9523b

Please sign in to comment.