fix fixer

This commit is contained in:
Megan Marsh 2020-05-28 16:38:12 -07:00
parent 1edc931e7f
commit ddf223b56b
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ func (FixerISOChecksumTypeAndURL) Fix(input map[string]interface{}) (map[string]
checksum := stringValue(builder["iso_checksum"])
delete(builder, "iso_checksum_url")
delete(builder, "iso_checksum_type")
if checksum == "" && checksumUrl == "" {
continue
}
if checksumUrl != "" {
checksum = "file:" + checksumUrl
} else if checksumType != "" {