Project

General

Profile

Actions

Bug #10863

open

Can't create organization with assigned assigned provisioning template if the template is set to default

Added by Marek Hulán over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

To reproduce, create a provisioning template with default flag set to true, let's say it's id is 1. Then try to create a new organization (would fail for location as well) like this

Organization.create :name => 'aaa', :provisioning_template_ids => [1]

it fails with blank .errors but if you check taxable_taxonomies object you realize that there's twice the same record (one from default, one from manual assignment) and last one's error messages contains cryptic error "Validation failed: Taxonomy has already been taken"

To test from hammer you can run following command

hammer organization create --provisioning-template-ids 1 --name test

this will return 500 and Foreman log contains not very helpful message

Action failed
 | RuntimeError: resource have no errors

No data to display

Actions

Also available in: Atom PDF