Actions
Bug #25305
closedValidation failed: Puppet class can't be blank when importing puppet classes
Difficulty:
easy
Triaged:
Yes
Pull request:
Description
Puppet Class import fails with "ActiveRecord::RecordInvalid: Validation failed: Puppet class can't be blank" when user does not have create_puppetclasses permission.
We should add a proper error message when https://github.com/theforeman/foreman/blob/f22a6c642a161bee0131e826cf9e7726fb901b08/app/services/puppet_class_importer.rb#L259 fails to create the puppetclass.
Actions