diff --git a/gs/gs.go b/gs/gs.go index 67ae9eb0..fc4392ba 100644 --- a/gs/gs.go +++ b/gs/gs.go @@ -284,8 +284,8 @@ func (c *container) Configuration(i interface{}) *BeanDefinition { } } - // depends on parent bean - bd.DependsOn(parentBean.ID()).On(cond.OnBean(parentBean.ID())) + // Inherit the parent conditions + bd.On(cond.OnBean(parentBean.ID())) } return c.Accept(parentBean)