undo portions of general stupidity I have done.

This commit is contained in:
Olivier Tremblay 2015-08-20 07:41:02 -04:00
parent f301a6454d
commit 839f051d93
2 changed files with 6 additions and 7 deletions

View File

@ -9,5 +9,4 @@ type PackerConfig struct {
PackerDebug bool `mapstructure:"packer_debug"`
PackerForce bool `mapstructure:"packer_force"`
PackerUserVars map[string]string `mapstructure:"packer_user_variables"`
PackerIsoTargetPath string `mapstructure:"packer_iso_target_path"`
}

View File

@ -71,7 +71,7 @@ func (s *StepDownload) Run(state multistep.StateBag) multistep.StepAction {
// if we force a certain extension we hash the URL and add
// the extension to force it.
cacheKey := url
if s.Extension != "" { //HERE.
if s.Extension != "" {
hash := sha1.Sum([]byte(url))
cacheKey = fmt.Sprintf(
"%s.%s", hex.EncodeToString(hash[:]), s.Extension)