diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/terraform/states/state_equal.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/states/state_equal.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/states/state_equal.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/states/state_equal.go b/vendor/github.com/hashicorp/terraform/states/state_equal.go new file mode 100644 index 0000000..ea20967 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/states/state_equal.go | |||
@@ -0,0 +1,18 @@ | |||
1 | package states | ||
2 | |||
3 | import ( | ||
4 | "reflect" | ||
5 | ) | ||
6 | |||
7 | // Equal returns true if the receiver is functionally equivalent to other, | ||
8 | // including any ephemeral portions of the state that would not be included | ||
9 | // if the state were saved to files. | ||
10 | // | ||
11 | // To test only the persistent portions of two states for equality, instead | ||
12 | // use statefile.StatesMarshalEqual. | ||
13 | func (s *State) Equal(other *State) bool { | ||
14 | // For the moment this is sufficient, but we may need to do something | ||
15 | // more elaborate in future if we have any portions of state that require | ||
16 | // more sophisticated comparisons. | ||
17 | return reflect.DeepEqual(s, other) | ||
18 | } | ||