[chef provisioning] When use_policyfile is given, the run list is not used, so don't require it

pull/3502/head
Joel Moss 11 years ago
parent 8d017be637
commit b1d731bd6f

@ -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 == "" {

Loading…
Cancel
Save