[chef provisioning] When use_policyfile is given, the run list is not used, so don't require it
This commit is contained in:
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…
Reference in New Issue