summaryrefslogtreecommitdiff
path: root/cmd/tfstate
diff options
context:
space:
mode:
authorJulien Dessaux2024-11-13 21:08:48 +0100
committerJulien Dessaux2024-11-13 21:08:48 +0100
commit4020344eda4d2a988f11dc60ac7c55a97aa39774 (patch)
treec5a6da4f1ddfea23642e0598f9623e18ac4f1659 /cmd/tfstate
parentchore(deps): update dependencies (diff)
downloadtfstated-4020344eda4d2a988f11dc60ac7c55a97aa39774.tar.gz
tfstated-4020344eda4d2a988f11dc60ac7c55a97aa39774.tar.bz2
tfstated-4020344eda4d2a988f11dc60ac7c55a97aa39774.zip
chore(tfstated): rename state "name" to "path" for consistency
Diffstat (limited to '')
-rw-r--r--cmd/tfstated/post_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tfstated/post_test.go b/cmd/tfstated/post_test.go
index 6eb68f2..fd66dc4 100644
--- a/cmd/tfstated/post_test.go
+++ b/cmd/tfstated/post_test.go
@@ -53,7 +53,7 @@ func TestPost(t *testing.T) {
err := db.QueryRow(`SELECT COUNT(versions.id)
FROM versions
JOIN states ON states.id = versions.state_id
- WHERE states.name = "/test_post"`).Scan(&n)
+ WHERE states.path = "/test_post"`).Scan(&n)
if err != nil {
t.Fatalf("failed to count versions for the /test_post state: %s", err)
}