Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/openstack: Allow empty api_key and endpoint_type #2626

Merged
merged 1 commit into from Jul 9, 2015
Merged

provider/openstack: Allow empty api_key and endpoint_type #2626

merged 1 commit into from Jul 9, 2015

Conversation

jtopjian
Copy link
Contributor

@jtopjian jtopjian commented Jul 6, 2015

These two provider options are optional though if they are not set,
the user will be prompted to enter values.

By changing them to use the envDefaultFuncAllowMissing, the values
are still passed in the environment if they are set and safely
discarded if they are not.

These two provider options are optional though if they are not set,
the user will be prompted to enter values.

By changing them to use the envDefaultFuncAllowMissing, the values
are still passed in the environment if they are set and safely
discarded if they are not.
@jtopjian jtopjian changed the title Allow empty api_key and endpoint_type provider/openstack: Allow empty api_key and endpoint_type Jul 6, 2015
@jtopjian
Copy link
Contributor Author

jtopjian commented Jul 9, 2015

This is definitely a bug fix rather than an enhancement (should I have opened a corresponding issue?). OpenStack deployments using Keystone v2 will receive an error when OS_AUTH_TOKEN is set:

$ terraform plan
Refreshing Terraform state prior to plan...

Error refreshing state: 1 error(s) occurred:

* The base Identity V2 API does not accept authentication by APIKey

The way it's currently configured, the user will be prompted to enter an API key and thus be caught in a catch-22.

OS_ENDPOINT_TYPE, while not causing breakage when set, is very much an optional setting. As seen in e04a6ca, it easily falls back to a default, working value, so being prompted to enter it is more of a hassle.

@phinze @mitchellh: May I ask a favor and get this reviewed in time for the next release?

@ggiamarchi
Copy link
Contributor

LGTM

@phinze
Copy link
Contributor

phinze commented Jul 9, 2015

LGTM - thanks @jtopjian!

phinze added a commit that referenced this pull request Jul 9, 2015
…ndpointtype

provider/openstack: Allow empty api_key and endpoint_type
@phinze phinze merged commit 4c1c67b into hashicorp:master Jul 9, 2015
@ghost
Copy link

ghost commented May 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants