Skip to content

Commit

Permalink
Fix typo in service template mixin
Browse files Browse the repository at this point in the history
There was a typo introduced by
ManageIQ#406 in the service
template mixin, this fixes it to match the PR on master.
  • Loading branch information
agrare committed Aug 1, 2018
1 parent 8547c12 commit cb85138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/mixins/service_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ServiceTemplates
def order_service_template(id, data)
service_template = resource_search(id, :service_templates, ServiceTemplate)
raise BadRequestError, "#{service_template_ident(service_template)} cannot be ordered" unless service_template.orderable?
workflow = service_template.provision_workflow(User.current_user, data || {}, :submit_workflow => true)
workflow = service_template.provision_workflow(User.current_user, data || {}, {:submit_workflow => true})
request_result = workflow.submit_request
errors = request_result[:errors]
if errors.present?
Expand Down

0 comments on commit cb85138

Please sign in to comment.