diff --git a/provisioner/chef-client/provisioner.go b/provisioner/chef-client/provisioner.go index 13575f731..8a3bff170 100644 --- a/provisioner/chef-client/provisioner.go +++ b/provisioner/chef-client/provisioner.go @@ -174,15 +174,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { } } - if p.config.EncryptedDataBagSecretPath != "" { - pFileInfo, err := os.Stat(p.config.EncryptedDataBagSecretPath) - - if err != nil || pFileInfo.IsDir() { - errs = packer.MultiErrorAppend( - errs, fmt.Errorf("Bad encrypted data bag secret '%s': %s", p.config.EncryptedDataBagSecretPath, err)) - } - } - if p.config.ServerUrl == "" { errs = packer.MultiErrorAppend( errs, fmt.Errorf("server_url must be set"))