Skip to content

Commit

Permalink
fix: Resolve move2kube images collect error (#1053)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
  • Loading branch information
Akash-Nayak authored Jun 27, 2023
1 parent 88bb425 commit 0576a30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion collector/imagescollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func (c *ImagesCollector) Collect(inputDirectory string, outputPath string) erro
}
imagefile := filepath.Join(outputPath, common.NormalizeForFilename(shortesttag)+".yaml")
err := common.WriteYaml(imagefile, imageInfo)
logrus.Errorf("Unable to write file %s : %s", imagefile, err)
if err != nil {
logrus.Errorf("Unable to write file %s : %s", imagefile, err)
}
}
}

Expand Down

0 comments on commit 0576a30

Please sign in to comment.