Commit Graph

11218 Commits

Author SHA1 Message Date
stack72 74ea8697de provider/vsphere: Add migration for `enable_disk_uuid` on
`virtual_machine`

Fixes #7275 - a state migration was missed when `enable_disk_uuid` was
merged

```
make testacc TEST=./builtin/providers/vsphere
TESTARGS='-run=TestVSphereVirtualMachineMigrateState'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/vsphere -v
-run=TestVSphereVirtualMachineMigrateState -timeout 120m
=== RUN   TestVSphereVirtualMachineMigrateState
--- PASS: TestVSphereVirtualMachineMigrateState (0.00s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/vsphere
0.018s
```
2016-06-22 23:43:44 +01:00
Brian Hahn 004cec60b3 fix readme numbered indentation (#7277) 2016-06-22 23:37:44 +01:00
James Bardin 1ad5c593c8 update CHANGELOG 2016-06-22 11:51:52 -04:00
James Bardin 146d40ac40 Merge pull request #7273 from hashicorp/jbardin/GH-7238
core: Don't try to copy files over themselves
2016-06-22 11:38:01 -04:00
James Bardin 558e023e26 Don't try to copy files over themselves
When copying a config module, make sure the full path for src and dst
files don't match, and also check the inode in case we resolved a
different path to the same file.

Make a note about the unsafe usage of reusing a tempDir path.
2016-06-22 11:25:42 -04:00
James Nugent b68eca56f4 Merge pull request #7272 from hashicorp/state-deepcopy-copystructure
core: Correctly ensure that State() is a copy
2016-06-22 17:35:09 +03:00
James Nugent d60365af02 core: Correctly ensure that State() is a copy
The previous mechanism for testing state threw away the mutation made on
the state by calling State() twice - this commit corrects the test to
match the comment.

In addition, we replace the custom copying logic with the copystructure
library to simplify the code.
2016-06-22 17:21:27 +03:00
James Nugent b190aa05a5 core: Add missing OutputStates in synthetic state
In cases where we construct state directly rather than reading it via
the usual methods, we need to ensure that the necessary maps are
initialized correctly.
2016-06-22 17:06:41 +03:00
James Nugent 828efef09e Merge pull request #7271 from hashicorp/core-test-args
build: Allow TESTARGS on make core-test
2016-06-22 16:33:22 +03:00
James Nugent 27d21778a2 build: Allow TESTARGS on make core-test 2016-06-22 16:32:43 +03:00
James Nugent 2b13e930ff Merge pull request #7267 from hashicorp/docs-map-keys-numeric
docs: Mention map keys which start with a number
2016-06-22 12:05:50 +03:00
James Nugent 0885aeef93 docs: Mention map keys which start with a number
Fixes #6857.
2016-06-22 12:05:12 +03:00
James Nugent 82a7ad8ed2 Merge pull request #7266 from hashicorp/fix-state-mv
cli: Fix registration of `state mv`.
2016-06-22 11:54:05 +03:00
James Nugent aa5dc453ee cli: Fix registration of `state mv`.
Fixes #7259.
2016-06-22 11:46:38 +03:00
Keshav Varma 58bd6dfb02 Add an AWS Spot fleet resource 2016-06-21 17:31:30 -07:00
Clint c5ec77eab5 Update CHANGELOG.md 2016-06-21 14:53:39 -05:00
Clint f4a1833baf provider/aws: Bundle IOPs and Allocated Storage update for DB Instances (#7203) 2016-06-21 14:53:13 -05:00
clint shryock 005d9a12e0 provider/aws: Update IAM / ELB server certs from expired ones 2016-06-21 13:54:40 -05:00
James Nugent f4d16a0dda Merge pull request #7247 from boyvanduuren/google_authentication_documentation
provider/google: Updated the documentation
2016-06-21 12:18:30 +02:00
James Nugent 6c13ec8b41 Merge pull request #7252 from hashicorp/update-hcl
deps: Update github.com/hashicorp/hcl/...
2016-06-21 10:47:14 +02:00
James Nugent 9acd031e3b deps: Update github.com/hashicorp/hcl/...
Fixes #6774.
2016-06-21 11:30:24 +03:00
Radek Simko 820c7ca519 Update CHANGELOG.md 2016-06-20 23:17:41 +01:00
Radek Simko 6fed5eb8f0 aws: Use new STS endpoint to validate creds (#6536) 2016-06-20 23:14:07 +01:00
Boy van Duuren 9dfbc20abf Updated the google provider authentication documentation
The Authentication JSON File[1] part of the Google provider
documentation contained outdated information.
This has now been updated.
2016-06-20 23:54:54 +02:00
Clint a2dcb44eb4 Update CHANGELOG.md 2016-06-20 16:21:53 -05:00
David Harris c7eb8a2022 provider/aws: elastic beanstalk invalid setting crash (#7222)
* Only check the `cnamePrefix` if the CNAME is not nil

* Get Elastic Beanstalk error messages
2016-06-20 16:21:15 -05:00
clint shryock ecc455ebb4 provider/aws: Guard against nil values in EC2 Tags 2016-06-20 15:53:04 -05:00
James Nugent 4bb3335541 Update CHANGELOG.md 2016-06-20 19:17:17 +03:00
James Nugent cf39fb22c2 Merge pull request #7201 from hashicorp/b-update-hcl-jun16
vendor: Update hashicorp/hcl to latest version
2016-06-20 18:15:43 +02:00
James Nugent 9d6c629689 config: Update test to reflect new behaviour
Escaped quotes are no longer supported as HIL syntax (as of the last
update to HIL), so this commit changes the Terraform config-layer test
to verify the non-presence of this behaviour for 0.7.
2016-06-20 19:06:03 +03:00
Paul Hinze 04f7afa04c vendor: Update hashicorp/hcl to latest version
Catches https://github.com/hashicorp/hcl/pull/132

Fixes #5550
2016-06-20 18:56:40 +03:00
James Nugent 717dced13f Update CHANGELOG.md 2016-06-20 09:43:43 +02:00
James Nugent a0df0bd7df Merge pull request #7227 from dtolnay/alarm
Stop swallowing errors from DescribeAlarms
2016-06-20 09:42:06 +02:00
James Nugent b8d15ec147 Merge pull request #7223 from leecalcote/patch-1
website/remote: added example usage for -disable
2016-06-20 09:39:50 +02:00
David Tolnay 0b9fb1d8f8
Stop swallowing errors from DescribeAlarms
This caused alarms to be created repeatedly if Terraform is running without
DescribeAlarms permission.
2016-06-18 15:57:52 -07:00
Lee Calcote b0d777c742 website/remote: added example usage for -disable
Added example usage for remote config subcommand, showing how to move from remote state to local state.
2016-06-17 20:16:09 -05:00
Thomas Reggi fe540b408f change the node_type to smaller size (#7218) 2016-06-17 15:53:45 -05:00
James Bardin 2a2f7cbc52 Merge pull request #7205 from hashicorp/jbardin/GH-2027
core: don't check any parts of a computed set in InstanceDiff.Same
2016-06-17 11:00:29 -04:00
Radek Simko a1f571725e Update CHANGELOG.md 2016-06-17 12:38:03 +01:00
James Nugent a9a2465b94 Merge pull request #7090 from geekq/patch-1
docs: explain instantiating terraform module multiple times
2016-06-17 13:36:38 +02:00
Radek Simko 2cdb5a367e aws/route53_zone: Make delegation_set_id conflict w/ vpc_id (#7213)
- as per the API reference it is not possible to use delegation sets w/ private hosted zones
   - http://docs.aws.amazon.com/Route53/latest/APIReference/API-create-hosted-zone-private.html
   - http://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHostedZone.html
 - if you specify both AWS returns confusing error "InvalidInput" with no further details so this should reduce potential confusions & improve UX
2016-06-17 12:35:49 +01:00
James Nugent 27464fb3d1 Update CHANGELOG.md 2016-06-17 13:33:19 +02:00
James Nugent 42709f6088 Merge pull request #7211 from hashicorp/mysql-provider-validation
provider/mysql: Empty Provider Credentials Caused Panic
2016-06-17 13:30:41 +02:00
stack72 7b482cca9b provider/mysql: Empty Provider Credentials Caused Panic
There are currently no checks on username and endpoint in the provider
schema from being an empty value. This PR adds support to make sure that
endpoint and username are not empty strings as that can cause a panic

Results of the PR:

```
 % terraform apply
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

  * provider.mysql: Endpoint must not be an empty string
```
2016-06-17 11:32:30 +01:00
dkalleg 02627e507d vSphere Provider - Updating Virtual Disk doc (#7200)
Resolves https://github.com/hashicorp/terraform/issues/7165
2016-06-17 11:19:20 +01:00
Patrick Sodré cd9b18b961 vendor: joyent/gosign/auth update to master (#7208)
Closes hashicorp/terraform#7155.
2016-06-17 11:18:01 +01:00
clint shryock 9967641c4b core/diff: Fix attribute mismatch with tags.% 2016-06-16 18:22:21 -05:00
James Bardin f4ef16a84b Add a core test for InstanceDiff.Same 2016-06-16 18:43:15 -04:00
James Bardin a3e2c99219 Add a failing acceptance test from GH-2027 2016-06-16 18:43:15 -04:00
James Bardin a5c1bf1b36 Don't check any parts of a computed hash in Same
When checking for "same" values in a computed hash, not only might some
of the values differ between versions changing the hash, but there may be
fields not included at all in the original map, and different overall
counts.

Instead of trying to match individual set fields with different hashes,
remove any hashed key longer than the computed key with the same base
name.
2016-06-16 18:42:48 -04:00