Skip to content

Commit

Permalink
Merge pull request #991 from metal3-cherrypick-bot/cherry-pick-990-to…
Browse files Browse the repository at this point in the history
…-release-1.3

[release-1.3] 🐛 Fixing sha256sum generation
  • Loading branch information
metal3-io-bot authored May 16, 2023
2 parents a6cc641 + bafd444 commit 474ea88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func EnsureImage(k8sVersion string) (imageURL string, imageChecksum string) {
Expect(err).To(BeNil())
sha256sum, err := getSha256Hash(rawImagePath)
Expect(err).To(BeNil())
err = os.WriteFile(fmt.Sprintf("%s/%s.sha256sum", ironicImageDir, rawImageName), sha256sum, 0544)
formattedSha256sum := fmt.Sprintf("%x", sha256sum)
err = os.WriteFile(fmt.Sprintf("%s/%s.sha256sum", ironicImageDir, rawImageName), []byte(formattedSha256sum), 0544)
Expect(err).To(BeNil())
Logf("Image: %v downloaded", rawImagePath)
} else {
Expand Down

0 comments on commit 474ea88

Please sign in to comment.