fix bad conditional logic and assignment

This commit is contained in:
Brian Warsing 2017-05-24 13:22:46 -07:00
parent 74de3782a2
commit 8cc4558df9
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
}, },
} }
if p.config.LicenseType == "" { if p.config.LicenseType != "" {
p.config.LicenseType = "BYOL" params.LicenseType = &p.config.LicenseType
} }
import_start, err := ec2conn.ImportImage(params) import_start, err := ec2conn.ImportImage(params)