Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

chef_url requires a trailing slash #15

Open
ncs-msmith opened this issue Sep 27, 2017 · 1 comment · May be fixed by #34
Open

chef_url requires a trailing slash #15

ncs-msmith opened this issue Sep 27, 2017 · 1 comment · May be fixed by #34

Comments

@ncs-msmith
Copy link

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.

@ncs-msmith
Copy link
Author

Looks like it's actually a problem with the go-chef lib: go-chef/chef#41

taylormonacelli added a commit to taylormonacelli/chef_wordpress that referenced this issue Nov 28, 2017
terricain added a commit to terricain/terraform-provider-chef that referenced this issue Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants