core: fix crash on invalid checksum type [GH-6327]

This commit is contained in:
Mitchell Hashimoto 2015-11-18 17:36:52 -08:00
parent eb5a6fc7c3
commit 7c49fd1418
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ BUG FIXES:
- core: only append `access_token` when it does not exist in the URL - core: only append `access_token` when it does not exist in the URL
[GH-6395, GH-6534] [GH-6395, GH-6534]
- core: use the correct private key when packaging a box [GH-6406] - 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/rdp: prefer `xfreerdp` if it is available on Linux [GH-6475]
- commands/up: the `--provision-with` flag works with provisioner names [GH-5981] - commands/up: the `--provision-with` flag works with provisioner names [GH-5981]
- communicator/ssh: fix potential crash case with PTY [GH-6225] - communicator/ssh: fix potential crash case with PTY [GH-6225]

View File

@ -507,7 +507,7 @@ module Vagrant
Digest::SHA2 Digest::SHA2
else else
raise Errors::BoxChecksumInvalidType, raise Errors::BoxChecksumInvalidType,
type: env[:box_checksum_type].to_s type: checksum_type.to_s
end end
@logger.info("Validating checksum with #{checksum_klass}") @logger.info("Validating checksum with #{checksum_klass}")