From 39bb3a6c559ccf3c79eaffc1d10b26e9fb2d0fdf Mon Sep 17 00:00:00 2001 From: Dany Garcia Date: Tue, 10 Nov 2020 12:34:42 -0800 Subject: [PATCH] incorrect error message regarding parameter names --- builder/amazon/chroot/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/chroot/builder.go b/builder/amazon/chroot/builder.go index fbbff11a0..23b7c1ada 100644 --- a/builder/amazon/chroot/builder.go +++ b/builder/amazon/chroot/builder.go @@ -349,7 +349,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) { if b.config.RootVolumeKmsKeyId != "" { if b.config.RootVolumeEncryptBoot.False() { errs = packer.MultiErrorAppend( - errs, errors.New("If you have set root_kms_key_id, root_encrypt_boot must also be true.")) + errs, errors.New("If you have set root_volume_kms_key_id, root_volume_encrypt_boot must also be true.")) } else if b.config.RootVolumeEncryptBoot.True() && !validateKmsKey(b.config.RootVolumeKmsKeyId) { errs = packer.MultiErrorAppend( errs, fmt.Errorf("%q is not a valid KMS Key Id.", b.config.RootVolumeKmsKeyId))