Project

General

Profile

Actions

Bug #11619

closed

Can't seed locked templates

Added by Stephen Benjamin over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman Remote Execution - Refactor #11620: Refactor template importing after Foreman allows locked template creationClosedStephen Benjamin08/31/2015Actions
Actions

Also available in: Atom PDF