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:
commit
2a24d52721
|
@ -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