Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public class PulsarApplicationListener implements ApplicationListener<ContextRef
@Value("${default.environment.bookie_url}")
private String defaultEnvironmentBookieUrl;

@Value("${default.superuser.enable}")
private Boolean defaultSuperuserEnable = false;
@Value("${default.superuser.enabled}")
private Boolean defaultSuperuserEnabled;

@Value("${default.superuser.name}")
private String defaultSuperuserName;
Expand Down Expand Up @@ -94,8 +94,8 @@ public void onApplicationEvent(ContextRefreshedEvent event) {
}

private void seedDefaultSuperuser() {
if(defaultSuperuserEnable == false) {
log.debug("Superuser seed disabled");
if(defaultSuperuserEnabled == false) {
log.info("Superuser seed via application.properties is disabled");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ public class PulsarAdminServiceImpl implements PulsarAdminService {
@Autowired
private EnvironmentsRepository environmentsRepository;

@Autowired
private EnvironmentCacheService environmentCacheService;

@PreDestroy
public void destroy() {
pulsarAdmins.values().forEach(value -> value.close());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ default.environment.service_url=
default.environment.bookie_url=

# default superuser configuration
default.superuser.enable=
default.superuser.enabled=false
default.superuser.name=
default.superuser.password=
default.superuser.email=
Expand Down