]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/helper/schema/field_reader_diff.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / helper / schema / field_reader_diff.go
index d558a5bc923f533404797052c65a3ab449908db1..ae35b4a87619c5e2faebdb5b2992bc580fd4876b 100644 (file)
@@ -174,6 +174,9 @@ func (r *DiffFieldReader) readPrimitive(
 
 func (r *DiffFieldReader) readSet(
        address []string, schema *Schema) (FieldReadResult, error) {
+       // copy address to ensure we don't modify the argument
+       address = append([]string(nil), address...)
+
        prefix := strings.Join(address, ".") + "."
 
        // Create the set that will be our result