Actions
Bug #23146
openShow better errors when template kind is missing on provisioning template import
Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Description
When a provisioning template is being imported, the `import_custom_data` associates template kind based on metadata. If kind is not found, a message for :template_kind_id is added but subsequent save call overwrites the message with a validation error.
Steps to reproduce:
1) try importing a template with nonexisting template kind in metadata
Actual results: template.errors #=> :template_kind_id => "can't be blank"
Expected results: template.errors #=> :template_kind_id => "specified template XYZ kind was not found"
No data to display
Actions