Project

General

Profile

Actions

Bug #25305

closed

Validation failed: Puppet class can't be blank when importing puppet classes

Added by Timo Goebel over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF