diff --git a/CHANGELOG.md b/CHANGELOG.md index 67eb80968..4b251fe24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ BUG FIXES: - core: only append `access_token` when it does not exist in the URL [GH-6395, GH-6534] - core: use the correct private key when packaging a box [GH-6406] + - core: fix crash when using invalid box checksum type [GH-6327] - commands/rdp: prefer `xfreerdp` if it is available on Linux [GH-6475] - commands/up: the `--provision-with` flag works with provisioner names [GH-5981] - communicator/ssh: fix potential crash case with PTY [GH-6225] diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 6aec780ee..5585c6fff 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -507,7 +507,7 @@ module Vagrant Digest::SHA2 else raise Errors::BoxChecksumInvalidType, - type: env[:box_checksum_type].to_s + type: checksum_type.to_s end @logger.info("Validating checksum with #{checksum_klass}")