Skip to content
Draft
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 @@ -79,7 +79,7 @@ public Advanced advanced() {
@Override
@Value.Derived
public Applications applications() {
return new DefaultApplications(getCloudFoundryClientPublisher(), getDopplerClientPublisher(), getSpaceId());
return new DefaultApplications(getCloudFoundryClient(), getDopplerClient(), getSpaceId().block());
}

@Override
Expand Down Expand Up @@ -318,12 +318,14 @@ private static boolean hasText(CharSequence str) {

private static Flux<OrganizationResource> requestOrganizations(Mono<CloudFoundryClient> cloudFoundryClientPublisher, String organization) {
return cloudFoundryClientPublisher
.flatMapMany(cloudFoundryClient -> PaginationUtils
.requestClientV3Resources(page -> cloudFoundryClient.organizationsV3()
.list(ListOrganizationsRequest.builder()
.name(organization)
.page(page)
.build())));
.flatMapMany(cloudFoundryClient -> PaginationUtils
.requestClientV3Resources(page -> cloudFoundryClient.organizationsV3()
.list(ListOrganizationsRequest.builder()
.name(organization)
.page(page)
.build())
)
);
}

private static Flux<SpaceResource> requestSpaces(Mono<CloudFoundryClient> cloudFoundryClientPublisher, String organizationId, String space) {
Expand Down
Loading