Project

General

Profile

Bug #9108

It's not possible to overwrite a default value of a parameter inherited from parent host group in nested host group

Added by Filip Brychta almost 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host groups
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

1 - create a new host group named 'parent' with global parameter named 'parameter1' with value 'parentValue'
2 - create a new host group named 'child' and set Parent to host group created in step 1. and change value of 'parameter1' to 'changed'

Result:
Value of 'parameter1' in 'child' host group is still 'parentValue'
Value of 'parameter1' in 'child' host group is editable but no change is applied.

Associated revisions

Revision 221fd050 (diff)
Added by Tom Caspy over 6 years ago

fixes #9108 - parent parameters are now overrideable

Revision 2cc2147b (diff)
Added by Tom Caspy over 6 years ago

fixes #9108 - parent parameters are now overrideable

(cherry picked from commit 221fd0504d1efc0b056fd93e0824b6fbc2b453e8)

History

#1 Updated by Tom Caspy almost 7 years ago

this is indeed a bug.
Current workaround - the value can be overridden by adding a new global parameter with the same name, and overriding the value there.

#2 Updated by Filip Brychta almost 7 years ago

Tom Caspy wrote:

this is indeed a bug.
Current workaround - the value can be overridden by adding a new global parameter with the same name, and overriding the value there.

Note that this workaround (duplicate parameters in the hostgroup) will lead to #8366

#3 Updated by Tom Caspy almost 7 years ago

checked... didn't break anything... apparently the bug is that the shown parameter isn't actually something which exists in the DB, I'll investigate further as to why this happens.

Filip Brychta wrote:

Tom Caspy wrote:

this is indeed a bug.
Current workaround - the value can be overridden by adding a new global parameter with the same name, and overriding the value there.

Note that this workaround (duplicate parameters in the hostgroup) will lead to #8366

#4 Updated by Tom Caspy almost 7 years ago

  • Assignee set to Tom Caspy

#5 Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2128 added
  • Pull request deleted ()

#6 Updated by Tom Caspy over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Dominic Cleal over 6 years ago

  • Category set to Host groups
  • Legacy Backlogs Release (now unused) set to 72

#8 Updated by Ori Rabin about 6 years ago

  • Bugzilla link set to 1295179

Also available in: Atom PDF