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

Fix error handling inside pandocPandoc func (#100)

Other changes:
- Updated strongdm/pandoc image references to edge

Co-authored-by: vassalo <vassalo@users.noreply.github.com>
This commit is contained in:
wallrony
2021-11-01 15:04:27 -03:00
parent 3d8652f497
commit c78f9007c2
4 changed files with 11 additions and 12 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") {
if strings.Contains(image.RepoTags[0], "strongdm/pandoc:edge") {
return true
}
}
@@ -352,7 +352,7 @@ func cleanContainers(c *cli.Context) error {
for _, c := range containers {
// assume this container was leftover from previous aborted run
if strings.HasPrefix(c.Image, "strongdm/pandoc") {
if strings.HasPrefix(c.Image, "strongdm/pandoc:edge") {
d := time.Second * 2
err = cli.ContainerStop(ctx, c.ID, &d)
if err != nil {