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/vault: Remove user input for optional vault provider fields #11082

Merged
merged 3 commits into from
Jan 17, 2017

Conversation

Mongey
Copy link
Contributor

@Mongey Mongey commented Jan 6, 2017

Hello again @apparentlymart 👋

When ca_cert_dir and ca_cert_file are not set in the vault provider, Terraform will prompt the user for input.

Looking at helper/schema/schema.go it seems that a nil DefaultValue for a TypeString will ask the user for input. Defaulting to "" will allow us to continue without user input.

It also seems like Terraform isn't handling TypeList, causing the crash described in #10505.

@Mongey Mongey changed the title provider/vault: Remove user input for optional provider settings [WIP] provider/vault: Remove user input for optional provider settings Jan 6, 2017
@Mongey
Copy link
Contributor Author

Mongey commented Jan 6, 2017

Adding a WIP tag, ConflictsWith always gets triggered with either ca_cert_file or ca_cert_dir set

@Mongey
Copy link
Contributor Author

Mongey commented Jan 6, 2017

It seems that the Vault Client allows ca_cert_file and ca_cert_dir to be set, so I've removed the ConflictsWith on these fields.

@Mongey Mongey changed the title [WIP] provider/vault: Remove user input for optional provider settings provider/vault: Remove user input for optional vault provider settings Jan 6, 2017
@Mongey Mongey changed the title provider/vault: Remove user input for optional vault provider settings provider/vault: Remove user input for optional vault provider fields Jan 6, 2017
@gerr1t
Copy link
Contributor

gerr1t commented Jan 8, 2017

+1 , thanks @Mongey

@stack72
Copy link
Contributor

stack72 commented Jan 17, 2017

LGTM! thanks for the work here :)

@stack72 stack72 merged commit 77c8683 into hashicorp:master Jan 17, 2017
@Mongey Mongey deleted the cm-vault-default branch January 17, 2017 12:46
toddnni added a commit to toddnni/terraform-provider-shell that referenced this pull request Jul 11, 2017
@ghost
Copy link

ghost commented Apr 18, 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.

@ghost ghost locked and limited conversation to collaborators Apr 18, 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.

4 participants