Look in correct context when finding Liquibase beans

See gh-22681
pull/23053/head
biergit 4 years ago committed by Andy Wilkinson
parent 49f8943a5f
commit 62156810cf

@ -62,7 +62,7 @@ public class LiquibaseEndpoint {
while (target != null) {
Map<String, LiquibaseBean> liquibaseBeans = new HashMap<>();
DatabaseFactory factory = DatabaseFactory.getInstance();
this.context.getBeansOfType(SpringLiquibase.class)
target.getBeansOfType(SpringLiquibase.class)
.forEach((name, liquibase) -> liquibaseBeans.put(name, createReport(liquibase, factory)));
ApplicationContext parent = target.getParent();
contextBeans.put(target.getId(),

Loading…
Cancel
Save