Puppet: System Administration Automated

Support

Ticket #472 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Subclasses are not inheriting defaults

Reported by: luke Assigned to: luke
Priority: high Milestone: grover
Component: language Version: 0.22.1
Severity: major Keywords: defaults inheritance
Cc: Triage Stage:
Attached Patches: Complexity:

Description

The following code doesn't work as expected:

class base {
    Exec { logoutput => true }
}

class sub inherits base {
    exec { "/bin/echo yayness": }
}

include sub

The exec in the subclass should get the default from the parent class, but it does not.

Currently, the only workaround is to move the default to the top-level of the site.pp file.

Change History

02/22/07 13:11:40 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2220].