Look in correct context when finding Liquibase beans

See gh-22681
This commit is contained in:
biergit 2020-07-31 00:29:38 +02:00 committed by Andy Wilkinson
parent 49f8943a5f
commit 62156810cf

View File

@ -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(),