minor fix
This commit is contained in:
parent
9dcb4daf1a
commit
0730bab773
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ public class KafkaClusterFactory {
|
|||
private boolean prometheusStorageConfigured(ClustersProperties.Cluster cluster) {
|
||||
return Optional.ofNullable(cluster.getMetrics())
|
||||
.flatMap(m -> Optional.ofNullable(m.getStore()))
|
||||
.flatMap(s -> Optional.of(s.getPrometheus()))
|
||||
.flatMap(s -> Optional.ofNullable(s.getPrometheus()))
|
||||
.map(p -> StringUtils.hasText(p.getUrl()))
|
||||
.orElse(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue