Project

General

Profile

Bug #11619

Can't seed locked templates

Added by Stephen Benjamin almost 3 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Something like `ProvisioningTemplate.create(...some stuff..., :locked => true` doesn't work, you have to create it and change the locked value later.

ActiveRecord::RecordInvalid: Validation failed: This template is locked. Please clone it to a new template to customize.

The validation should only validate if the record is persisted.


Related issues

Related to Foreman Remote Execution - Refactor #11620: Refactor template importing after Foreman allows locked template creationClosed2015-08-31

Associated revisions

Revision bf5f1801 (diff)
Added by Stephen Benjamin almost 3 years ago

fixes #11619 - only check template changes when persisted

Revision 7cc2816a (diff)
Added by Stephen Benjamin almost 3 years ago

fixes #11619 - only check template changes when persisted

(cherry picked from commit bf5f18013ad224a93d917d696d94952965a8968d)

History

#1 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2652 added
  • Pull request deleted ()

#2 Updated by Marek Hulán almost 3 years ago

  • Related to Refactor #11620: Refactor template importing after Foreman allows locked template creation added

#3 Updated by Dominic Cleal almost 3 years ago

  • Assignee set to Stephen Benjamin
  • Legacy Backlogs Release (now unused) set to 72

#4 Updated by Anonymous almost 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF