Skip to content

Commit

Permalink
fix: file name
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGhiya committed Feb 23, 2024
1 parent 98d3e1f commit b4a9999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/base-project/image-scan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func main() {
valueFileName := os.Getenv("VALUES_FILE")

logger, _ := zap.NewProduction()
data, err := utils.ReadFile(valueFileName)
if err != nil {
Expand All @@ -29,7 +30,8 @@ func main() {
return
}

fileName := "images.json"
//
fileName := "docker_images.json"
if err := utils.WriteFile(fileName, jsonData); err != nil {
logger.Error("Error writing to json", zap.Error(err))
return
Expand Down

0 comments on commit b4a9999

Please sign in to comment.