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

This commit is contained in:
Joel Moss 2015-10-14 19:05:38 +01:00
parent 8d017be637
commit b1d731bd6f
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 == "" {