Project

General

Profile

Bug #12249

Use puppet default on matchers causes smart class parameter default to be sent

Added by Tomer Brisker almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart Variables
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Example:
Smart class parameter with default value "123"
If you add a matcher for hostgroup=example with no value and check use_puppet_default you expect the hostgroup example to get no value for the parameter and leave the value up to puppet.
Instead, the YAML shows that the default value is sent.
This occurs even if the smart class parameter is set the use_puppet_default


Related issues

Has duplicate Foreman - Bug #13056: Puppet Parameters: Use Puppe Default override via Hostgroup Not Inheriting to HostDuplicate2016-01-07

Associated revisions

Revision 37f3e0d0 (diff)
Added by Ori Rabin almost 4 years ago

Fixes #12249 - Use puppet default on specific matchers does not send default value to puppet

Revision 1283270b (diff)
Added by Ori Rabin over 3 years ago

Fixes #12249 - Use puppet default on specific matchers does not send default value to puppet

(cherry picked from commit 37f3e0d067b8ce542b211cbe1bad0773a2ea685f)

History

#1 Updated by Tomer Brisker almost 4 years ago

This has been checked to be since at least 1.8.4, possibly occurred even earlier.

#2 Updated by The Foreman Bot almost 4 years ago

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

#3 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 104

#4 Updated by Ori Rabin almost 4 years ago

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

#5 Updated by Dominic Cleal over 3 years ago

  • Has duplicate Bug #13056: Puppet Parameters: Use Puppe Default override via Hostgroup Not Inheriting to Host added

Also available in: Atom PDF