Bug #4440
openpuppet environments not being added to organization
Description
$ hammer organization add_environment --id 10 --environment-id 2
https://localhost:3000/api/environments/2
{
"name": "Production",
"id": 2,
"created_at": "2014-02-24T21:05:34Z",
"updated_at": "2014-02-24T21:05:34Z",
"locations": [],
"organizations": [],
"template_combinations": [],
"puppetclasses": []
}
Attempted through UI:
Failed to replace environments because one or more of the new records could not be saved.
Rails.root: /home/tomckay/code/foreman
Application Trace | Framework Trace | Full Trace
app/controllers/concerns/foreman/controller/taxonomies_controller.rb:78:in `block in update'
app/models/taxonomy.rb:39:in `block in no_taxonomy_scope'
app/models/taxonomy.rb:46:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:143:in `as_location'
app/models/taxonomy.rb:45:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:108:in `as_org'
app/models/taxonomy.rb:44:in `as_taxonomy'
app/models/taxonomy.rb:38:in `no_taxonomy_scope'
app/controllers/concerns/foreman/controller/taxonomies_controller.rb:77:in `update'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
Updated by Tomáš Strachota over 9 years ago
- Target version set to hammer-cli 0.6.0
Updated by Tomáš Strachota over 9 years ago
- Target version changed from hammer-cli 0.6.0 to hammer-cli 0.7.0
Updated by Tomáš Strachota almost 8 years ago
- Target version deleted (
hammer-cli 0.7.0)
Updated by Tomáš Strachota about 7 years ago
- Category changed from Foreman commands (obsolete) to Configuration management