File provisioner, don't fail when no content is passed. (#11349)

validate_locals
Adrien Delorme 5 years ago committed by GitHub
parent 64ddaa922a
commit 948ef1f673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,11 +110,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
}
if len(p.config.Sources) < 1 && p.config.Content == "" {
errs = packersdk.MultiErrorAppend(errs,
errors.New("source, sources or content must be specified."))
}
if len(p.config.Sources) > 0 && p.config.Content != "" {
errs = packersdk.MultiErrorAppend(errs,
errors.New("source(s) conflicts with content."))

Loading…
Cancel
Save