Allow manifest_file to be a directory

Puppet is removing support for imports and node inherits. This change will support directories as manifests

https://docs.puppetlabs.com/puppet/latest/reference/dirs_manifest.html
https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html
pull/1771/head
Neeki Patel 12 years ago
parent 496d1fe9b5
commit 5a9e5df967

@ -180,9 +180,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
if err != nil {
errs = packer.MultiErrorAppend(errs,
fmt.Errorf("manifest_file is invalid: %s", err))
} else if info.IsDir() {
errs = packer.MultiErrorAppend(errs,
fmt.Errorf("manifest_file must point to a file"))
}
}

Loading…
Cancel
Save