mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
File provisioner, don't fail when no content is passed. (#11349)
This commit is contained in:
parent
64ddaa922a
commit
948ef1f673
1 changed files with 0 additions and 5 deletions
|
|
@ -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…
Reference in a new issue