hashicorp-community / tf-helper

Commands for performing operations on Terraform states, configurations, TFE using the API, and more. Please target all PRs to the master branch, not the release branch.
Mozilla Public License 2.0
102 stars 32 forks source link

hostname is not working if set from the ~/.tfh/tfhrc #6

Closed samm-git closed 5 years ago

samm-git commented 5 years ago

I found that if i am setting hostname in the~/.tfh/tfhrc it is not working as intended:

TFH_hostname="example.com"

./tfh/bin/tfh workspace list -org test will give a curl call to the https://app.terraform.ioexample.com/api/v2/organizations/test/workspaces However, if i am setting it using -hostname it is working as intended.

fprimex commented 5 years ago

This was an error whereby options with defaults that also had values in the config file were appending the config file values rather than overwriting them. Fix in 0.2.7, just released. Thanks for the continued reports!