This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Description
When the configured chef_url value does not contain a trailing slash, the organization value is not included in requests.
For example:
provider "chef" {
chef_url = "https://chef.example.org/organizations/someorganization"
<...>
}
Error applying plan:
1 error(s) occurred:
* module.test.chef_environment.name_prefix: 1 error(s) occurred:
* chef_environment.foobar: POST https://chef.example.org/organizations/environments: 405
Terraform Version
0.10.6
Chef Provider Version
0.1.0
Expected Behavior
Current documentation shows a trailing slash in examples, but the argument reference does not note that it is required. I would expect that the trailing slash is optional.
Actual Behavior
If a trailing slash is not included, a 405 error is returned from the chef server, because the organization value is left out of requests.