Hi,
I'm trying to pass a parameter different from the default to the child
of a parametrized class with inheritance, but the inherited code from
the parent class doesn't seem to be taking the correct parameter.
For example, in the following code:
class parent ( $foo = "bar" ) {
notice("parent: foo is $foo ")
}
class child ( $foo = "bar" ) inherits parent {
notice("child: foo is $foo ")
}
class { "child": foo => "test" }
I would expect the following result:
notice: Scope(Class[Parent]): parent: foo is test
notice: Scope(Class[Child]): child: foo is test
I'm getting the following one instead:
notice: Scope(Class[Parent]): parent: foo is bar
notice: Scope(Class[Child]): child: foo is test
Is that the correct behaviour?
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.