fix bad conditional logic and assignment
This commit is contained in:
parent
74de3782a2
commit
8cc4558df9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue