Fixing space parallelization

[Fixes #701]
This commit is contained in:
Alberto C. Ríos
2023-02-08 12:31:00 +01:00
parent 94f7e50e5f
commit 00d035d4ee
2 changed files with 103 additions and 0 deletions

View File

@@ -767,6 +767,7 @@ public class CloudFoundryAppDeployer implements AppDeployer, ResourceLoaderAware
})
.doOnError(e -> LOG.error(String.format("Error creating space. spaceName=%s, " +
ERROR_LOG_TEMPLATE, spaceName, e.getMessage()), e))
.onErrorResume(e -> Mono.empty())
.map(response -> response.getMetadata().getId())
.flatMap(spaceId -> addSpaceDeveloperRoleForCurrentUser(orgName, spaceName, spaceId)
.thenReturn(spaceId)))));