Skip to content

Commit

Permalink
Fix for saving original and converted shoots.
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Oct 24, 2024
1 parent 1d24659 commit c7e1f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/runtime-migrator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ func main() {
continue
}

saveShootToFile("/tmp/"+shoot.Name+"/original_shoot.yaml", &shoot)
saveShootToFile("/tmp/"+shoot.Name+"/converted_shoot.yaml", &shootFromConverter)

// save comparison report with differences
resultsDir, err := comparator.SaveComparisonReport(result, cfg.OutputPath, shoot.Name)
if err != nil {
Expand All @@ -115,6 +112,9 @@ func main() {
log.Printf("Results stored in %q", resultsDir)
}

saveShootToFile("/tmp/"+shoot.Name+"/original_shoot.yaml", &shoot)
saveShootToFile("/tmp/"+shoot.Name+"/converted_shoot.yaml", &shootFromConverter)

runtimeAsYaml, err := getYamlSpec(runtime)
if err != nil {
log.Printf("Failed to convert spec to yaml, %s", err)
Expand Down

0 comments on commit c7e1f81

Please sign in to comment.