1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 14:24:12 +00:00

Fix error when getting images without tags (#100)

This commit is contained in:
Rodolfo Campos
2021-11-03 12:47:41 +01:00
parent c78f9007c2
commit 4dc7f94857
3 changed files with 57 additions and 57 deletions

View File

@@ -274,7 +274,7 @@ var pandocImageExists = func(ctx context.Context) bool {
return false
}
for _, image := range imageList {
if strings.Contains(image.RepoTags[0], "strongdm/pandoc:edge") {
if len(image.RepoTags) > 0 && strings.Contains(image.RepoTags[0], "strongdm/pandoc:edge") {
return true
}
}