terraform/builtin
Paul Hinze ef5b6e93a9 provider/azure: fix issues loading config from homedir
Issues were:

 * `settings_file` `ValidateFunc` needs to expand homedir just like the
   `configure` does, otherwise ~-based paths fail validation
 * `isFile` was being called before ~-expand so configure was failing as well
 * `Config` was swallowing error so provider was ending up with `nil`,
   resulting in crash

To fix:

 * Consolidate settings_file path/contents handling into a single helper
   called from both `validate` and `configure` funcs
 * Return err from `Config`

To cover:

 * Added test case to validate w/ tilde-path
 * Added configure test w/ tilde-path
2015-10-13 16:57:11 -05:00
..
bins Merge pull request #3419 from rakutentech/add-vsphere-provider 2015-10-12 10:13:38 -05:00
providers provider/azure: fix issues loading config from homedir 2015-10-13 16:57:11 -05:00
provisioners gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00