Browse Source

Remove possible infinite loop in dcg

dcg-latest
nicolas.dorier 5 years ago
parent
commit
56ce1cc3c5
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 4
      docker-compose-generator/src/DockerComposeDefinition.cs

4
docker-compose-generator/src/DockerComposeDefinition.cs

@ -106,7 +106,9 @@ namespace DockerGenerator
unprocessedFragments.Remove(fragment);
}
foreach (var fragment in requiredFragments.Concat(recommendedFragments).Where(f => !processedFragments.Contains(f)))
foreach (var fragment in requiredFragments
.Concat(recommendedFragments)
.Where(f => !processedFragments.Contains(f) && !fragmentsNotFound.Contains(f)))
{
unprocessedFragments.Add(fragment);
}

Loading…
Cancel
Save