Bug #21622
closedSimilarly named Chef Environments are not imported
Description
On our server we have some similarly named Chef Environments:
dev Development
dev-ng Development Next Gen
load Load Testing
load-ng Load Testing Next Gen
etc...
When we click "Import from Chef Server" on the environments page, *-ng environments are seen and the :add action is listed as they do not exist. Clicking import results in a "success" message, but the environments never appear.
Files
Updated by Chris Routh about 7 years ago
Updated by Chris Routh about 7 years ago
Thought I'd work around this by adding the environments manually. But we cannot.
This is a flaw in the environments naming standard that either the Chef Gem or Foreman allows for. "must be alphanumeric" - Chef allows for dashes in the name of an environment, so Foreman must also allow this.
Updated by Marek Hulán almost 7 years ago
- Status changed from New to Closed
- Assignee set to Marek Hulán
- Translation missing: en.field_release changed from 215 to 216
- Pull request https://github.com/theforeman/foreman_chef/pull/83 added
Thanks for the report and sorry for the delay. I updated the validation according to the docs it can now contain hyphens and underscores.