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

chef_url requires a trailing slash #15

@ncs-msmith

Description

@ncs-msmith

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions