Skip to content

Commit

Permalink
fix: ignore blank or junk lines in the beginning of "show state" (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoavrah authored Dec 31, 2023
1 parent c5c744b commit 035baf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "tftui"
version = "0.11.0"
version = "0.11.1"
description = "Terraform Textual User Interface"
authors = ["Ido Avraham"]
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions tftui/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async def refresh_state(self) -> None:
if stdout.startswith("The state file is empty."):
return

contents = ""
for line in state_output:
if line.startswith("#"):
(fullname, name, submodule, type, is_tainted) = State.parse_block(line)
Expand Down

0 comments on commit 035baf2

Please sign in to comment.