Merge pull request #3502 from joelmoss/chef_policy_unused_runlist

[chef provisioning] When use_policyfile is given, the run list is not used, so don't require it
This commit is contained in:
Sander van Harmelen 2015-10-15 12:40:45 +02:00
commit 2a24d52721
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ func (r *ResourceProvisioner) Validate(c *terraform.ResourceConfig) (ws []string
if p.NodeName == "" {
es = append(es, fmt.Errorf("Key not found: node_name"))
}
if p.RunList == nil {
if !p.UsePolicyfile && p.RunList == nil {
es = append(es, fmt.Errorf("Key not found: run_list"))
}
if p.ServerURL == "" {