Project

General

Profile

Bug #25305

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

Added by Timo Goebel 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Team Backlog:
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.

Associated revisions

Revision 167c5f5b (diff)
Added by Timo Goebel 7 months ago

fixes #25305 - error when puppetclass cannot be created

History

#1 Updated by Lukas Zapletal 7 months ago

  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot 7 months ago

  • Assignee set to Timo Goebel
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6199 added

#3 Updated by Ondřej Pražák 7 months ago

  • Status changed from Ready For Testing to Closed
  • Fixed in Releases 1.21.0 added

Also available in: Atom PDF