Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

Commit 1b8ac50

Browse files
committed
fix: convert schema_version to int in state migration
TF 0.11 stores schema_version as a string ("1") but TF 1.x requires it as an integer (1).
1 parent 89224c8 commit 1b8ac50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci/infrastructure/scripts/migrate-terraform-state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def migrate_v3_to_v4(state_v3):
4949
primary = res_data.get("primary", {})
5050
attributes = primary.get("attributes", {})
5151
meta = primary.get("meta", {})
52-
schema_version = meta.get("schema_version", 0) if isinstance(meta, dict) else 0
52+
schema_version = int(meta.get("schema_version", 0)) if isinstance(meta, dict) else 0
5353

5454
instance = {
5555
"schema_version": schema_version,

0 commit comments

Comments
 (0)