provisioner/puppet-masterless: deprecation warning

This commit is contained in:
Mitchell Hashimoto 2015-06-16 09:38:24 -07:00
parent 742e556836
commit 8990c38d5e
1 changed files with 2 additions and 0 deletions

View File

@ -264,6 +264,8 @@ func (p *Provisioner) uploadManifests(ui packer.Ui, comm packer.Communicator) (s
return "", fmt.Errorf("Error inspecting manifest file: %s", err)
} else if !fi.IsDir() {
manifestFilename = filepath.Base(manifestFilename)
} else {
ui.Say("WARNING: manifest_file should be a file. Use manifest_dir for directories")
}
remoteManifestFile := fmt.Sprintf("%s/%s", remoteManifestsPath, manifestFilename)