Configs reading fixed
@@ -193,9 +193,12 @@ public final class VertxMain {
final Storage storage = settings.storage();
final String yaml = ".yaml";
final Collection<RepoConfig> configs = storage.list(Key.ROOT).thenApply(
- keys -> keys.stream().map(Key::string).filter(name -> name.endsWith(yaml)).map(
- name -> new RepositoriesFromStorage(storage).config(name)
- ).map(stage -> stage.toCompletableFuture().join()).collect(Collectors.toList())
+ keys -> keys.stream().map(Key::string)
+ .filter(name -> name.endsWith(yaml))
+ .map(name -> name.substring(0, name.length() - yaml.length()))
+ .map(name -> new RepositoriesFromStorage(storage).config(name))
+ .map(stage -> stage.toCompletableFuture().join())
+ .collect(Collectors.toList())
).toCompletableFuture().join();
for (final RepoConfig repo : configs) {
repo.port().ifPresent(
