Check for empty iso name

This commit is contained in:
Cheng Sun 2014-12-11 16:31:57 +00:00
parent c2c133c605
commit 41c5930cde

View File

@ -199,6 +199,11 @@ func (self *Builder) Prepare(raws ...interface{}) (params []string, retErr error
}
*/
if self.config.IsoName == "" {
errs = packer.MultiErrorAppend(
errs, errors.New("an iso_name must be specified"))
}
self.config.BootWait, err = time.ParseDuration(self.config.RawBootWait)
if err != nil {
errs = packer.MultiErrorAppend(