From 8cc4558df9c72f9e7d69321072880430c17a18c6 Mon Sep 17 00:00:00 2001 From: Brian Warsing Date: Wed, 24 May 2017 13:22:46 -0700 Subject: [PATCH] fix bad conditional logic and assignment --- post-processor/amazon-import/post-processor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post-processor/amazon-import/post-processor.go b/post-processor/amazon-import/post-processor.go index e3fa29899..409402ce2 100644 --- a/post-processor/amazon-import/post-processor.go +++ b/post-processor/amazon-import/post-processor.go @@ -173,8 +173,8 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac }, } - if p.config.LicenseType == "" { - p.config.LicenseType = "BYOL" + if p.config.LicenseType != "" { + params.LicenseType = &p.config.LicenseType } import_start, err := ec2conn.ImportImage(params)