Merge pull request #10697 from Bonial-International-GmbH/PJ_awsS3_handle-zero-integrations

feat: handle potential future case of no awsS3 integration
This commit is contained in:
Johan Haals
2022-04-08 13:42:56 +02:00
committed by GitHub
@@ -63,6 +63,9 @@ export class AwsS3EntityProvider implements EntityProvider {
// In this case, we still want the first one though, but have no means to select it
// just from the bucket name (and region).
const integration = ScmIntegrations.fromConfig(configRoot).awsS3.list()[0];
if (!integration) {
throw new Error('No integration found for awsS3');
}
return providerConfigs.map(
providerConfig =>