Bug #4440

puppet environments not being added to organization

Added by Thomas McKay about 3 years ago. Updated about 1 year ago.

Status:New
Priority:Normal
Assigned To:-
Category:Foreman commands
Target version:hammer-cli 0.7.0
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

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'

History

#1 Updated by Tomáš Strachota over 1 year ago

  • Target version set to hammer-cli 0.6.0

#2 Updated by Tomáš Strachota about 1 year ago

  • Target version changed from hammer-cli 0.6.0 to hammer-cli 0.7.0

Also available in: Atom PDF