CreateModule also inherits variableProperties.

Bug: N/A
Test: manual
Change-Id: Ic5ecbeac04841d4016c0caa8710a6adae1ec2bd6
This commit is contained in:
Steven Moreland 2019-09-06 18:28:58 -07:00
parent 2895bf7182
commit 349cd474ef

View file

@ -244,8 +244,8 @@ func (t *topDownMutatorContext) Rename(name string) {
}
func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) {
common := []interface{}{&t.Module().base().commonProperties}
t.bp.CreateModule(factory, append(common, props...)...)
inherited := []interface{}{&t.Module().base().commonProperties, &t.Module().base().variableProperties}
t.bp.CreateModule(factory, append(inherited, props...)...)
}
func (b *bottomUpMutatorContext) MutatorName() string {