Commit Graph

21816 Commits

Author SHA1 Message Date
Kevin Faulkner 0a929809b0 cherry-pick type 2018-04-30 14:32:03 -07:00
Chris Griggs 2fa8ce7dde
Merge pull request #17971 from cgriggs01/d-community-prov
Add a few community providers
2018-04-30 11:24:55 -07:00
Chris ddf5e581ca add Nutanix 2018-04-30 11:04:59 -07:00
Chris 1c781d7b9e add a few community providers 2018-04-30 09:52:57 -07:00
kt a182a53108
Add a HashInt helper/schema function 2018-04-27 00:04:41 -07:00
Brian Flad c1bc0be7b2
Merge pull request #17930 from walterdolce/update-documentation
Make "v3" in etcd visible in the backend types sidebar
2018-04-25 11:05:11 -04:00
Walter Dolce b60501290c
Make "v3" in etcd visible in the backend types sidebar 2018-04-25 15:20:56 +01:00
Radek Simko 25f54119f3
Merge pull request #17913 from kondor6c/patch-1
fix incorrect url
2018-04-23 10:43:54 +02:00
Kevin Faulkner b39ec8b6ff
fix incorrect url
switch guthub with github global
2018-04-21 15:56:42 -04:00
Anthony Stanton ab6d52a9f8 Bump terraform-provider-aws and aws-sdk-go 2018-04-20 09:47:00 +02:00
Emil Nikolov 8d3bcd4f87 website: Fix repetition of "directly" in file provisioner docs 2018-04-16 16:27:52 -07:00
Chris Griggs e32dd2a190
Merge pull request #17852 from hashicorp/cgriggs-docs-fix
typo fix
2018-04-12 10:37:19 -07:00
Chris Griggs 926d56343b
typo fix 2018-04-12 10:36:34 -07:00
Chris 18fa0b8063 add two community providers 2018-04-12 10:08:36 -07:00
Chris Griggs 05291ab982
Merge pull request #17845 from cgriggs01/d-add-com-prov
Website: add two community providers
2018-04-12 09:43:20 -07:00
Chris 74c62b62b6 add two community providers 2018-04-11 16:26:28 -07:00
James Bardin 2dc7241df0 release: clean up after v0.11.7 2018-04-10 16:58:22 +00:00
James Bardin 1f4ab2041c Merge branch 'master' into stable-website 2018-04-10 16:56:44 +00:00
James Bardin 41e50bd32a
v0.11.7 2018-04-10 16:50:42 +00:00
James Bardin 0ad9d7b392
Merge pull request #17825 from hashicorp/jbardin/go-getter-update
update go-getter
2018-04-10 12:21:24 -04:00
James Bardin 227285d7d0 update CHANGELOG.md 2018-04-10 12:13:00 -04:00
James Bardin 08f32443fc update go-getter
update to the latest version of go-getter
2018-04-10 12:09:51 -04:00
James Bardin 5b930df0eb
Merge pull request #17824 from hashicorp/jbardin/destroy-plan-count
walkDestroy is a form of "apply"
2018-04-10 12:06:20 -04:00
James Bardin cfefeec926 walkDestroy is a form of "apply"
When computing the count value, make sure to include walkDestroy with
walkApply, as the former is only a special case of the latter.

When applying a saved plan, the computed count values are lost and we
can no longer query the state for those values. The apply walk was
already considered in the `resourceCountMax` function, but the destroy
walk was not.  This worked when destroying in a single operation
("terraform destroy"), since the state would still be updated with the
latest counts from the plan.
2018-04-10 11:46:29 -04:00
Chris Marchesi be6fffb171
Add a little more explanation for GH-17811 in CHANGELOG.md 2018-04-09 15:58:12 -07:00
Chris Marchesi 0e357e56ed
Update CHANGELOG.md 2018-04-09 15:57:03 -07:00
Chris Marchesi b2a83f0762
Merge pull request #17811 from hashicorp/b-resourcediff-forcenew-newremoved-values
helper/schema: ResourceDiff ForceNew attribute correctness
2018-04-09 15:51:00 -07:00
Clint fe384e574b
Update guides.erb
Update "Writing Custom Providers" guide link to new Extend section
2018-04-09 15:12:48 -05:00
Clint 76974209ec
Update guides.erb
Update "Writing Custom Providers" guide link to new Extend section
2018-04-09 15:11:59 -05:00
Chris Marchesi 7f876c2298
Merge pull request #17816 from cgriggs01/f-add-nsxt
add VMware NSX-T links to provider index pages
2018-04-09 11:32:07 -07:00
Chris Marchesi 68633b7c27
Merge pull request #17816 from cgriggs01/f-add-nsxt
add VMware NSX-T links to provider index pages
2018-04-09 11:22:11 -07:00
Chris Griggs b0f0dd2795
fix typo 2018-04-09 11:06:06 -07:00
Chris Griggs 3ab13fefad
Fix typo 2018-04-09 11:05:36 -07:00
Chris 36539f1a25 add VMware NSX-T links to provider index pages 2018-04-09 10:52:57 -07:00
Chris Marchesi d7048cb640
helper/schema: ResourceDiff ForceNew attribute correctness
A couple of bugs have been discovered in ResourceDiff.ForceNew:

* NewRemoved is not preserved when a diff for a key is already present.
This is because the second diff that happens after customization
performs a second getChange on not just state and config, but also on
the pre-existing diff. This results in Exists == true, meaning nil is
never returned as a new value.
* ForceNew was doing the work of adding the key to the list of changed
keys by doing a full SetNew on the existing value. This has a side
effect of fetching zero values from what were otherwise undefined values
and creating diffs for these values where there should not have been
(example: "" => "0").

This update fixes these scenarios by:

* Adding a new private function to check the existing diff for
NewRemoved keys. This is included in the check on new values in
diffChange.
* Keys that have been flagged as ForceNew (or parent keys of lists and
sets that have been flagged as ForceNew) are now maintained in a
separate map. UpdatedKeys now returns the results of both of these maps,
but otherwise these keys are ignored by ResourceDiff.
* Pursuant the above, values are no longer pushed into the newDiff
writer by ForceNew. This prevents the zero value problem, and makes for
a cleaner implementation where the provider has to "manually" SetNew to
update the appropriate values in the writer. It also prevents
non-computed keys from winding up in the diff, which ResourceDiff
normally blocks by design.

There are also a couple of tests for cases that should never come up
right now involving Optional/Computed values and NewRemoved, for which
explanations are given in annotations of each test. These are here to
guard against future regressions.
2018-04-08 07:50:41 -07:00
Andrew Bloomgarden d9b315564e tools/terraform-bundle: compress files in the generated zip file
The FileInfoHeader method does not compress files by default.
2018-04-06 19:16:25 -07:00
James Bardin fdc74f96cc
Merge pull request #17789 from hashicorp/jbardin/travis
update travis to go1.10.1
2018-04-05 16:23:19 -04:00
James Bardin fdbd153449 update CHANGELOG.md
Fix link formatting from script
Add missing entry
2018-04-05 16:14:58 -04:00
James Bardin 58c4504148 release: clean up after v0.11.6 2018-04-05 19:42:26 +00:00
James Bardin dbce85d85f
v0.11.6 2018-04-05 19:25:37 +00:00
James Bardin 967a688f22 update travis to go1.10.1 2018-04-05 15:09:09 -04:00
Dominik-K 9da5f5a9f0 docs: no interpolations in `lifecycle` attribute (#3116) (#17695)
* docs: interpolations in `lifecycle` unsupported currently
2018-04-05 15:06:22 -04:00
James Bardin bfbab7100c update CHANGELOG.md 2018-04-05 14:28:27 -04:00
James Bardin 2f8532407a
Merge pull request #17071 from MarkFreebairn/Issue-16360-empty-target-points-to-all-resources-in-state
command: Fix #16360 - Fail fast if -target is specified but empty
2018-04-05 14:19:32 -04:00
James Bardin 79d0a5c4a4
Merge pull request #17788 from hashicorp/jbardin/communicators
get errors from winrm commands
2018-04-05 13:05:13 -04:00
James Bardin dc8c1534fe udpate winrmcp 2018-04-05 12:54:58 -04:00
James Bardin abfb43555a connect communicator during Start
Match the tested behavior, and that of the ssh implementation, where the
communicator automatically connects when starting a command.

Remove unused import from legacy dependency handling.
2018-04-05 12:54:58 -04:00
James Bardin 82a4552030 use Run instead of Shell.Execute in winrm
The error from a remote command is not exported, and only exposed via
the Run method. Otherwise the Run method works exactly like the
runCommand function being removed.
2018-04-05 12:54:58 -04:00
James Bardin 3c30f04e0e fix ssh logging
Ensure correct formatting and add a log level to all output.
2018-04-05 12:54:58 -04:00
James Bardin d12a387cb6 update CHANGELOG.md 2018-04-05 12:29:15 -04:00