Skip to content

Commit

Permalink
fix: fix no button
Browse files Browse the repository at this point in the history
  • Loading branch information
idoavrah committed Jul 23, 2023
1 parent f4755f4 commit dc08bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/tftui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ async def on_ready(self) -> None:
async def on_button_pressed(self, event: Button.Pressed) -> None:
if event.button.id == "yes":
await self.perform_action()
elif event.button.id == "no":
self.action_no()

async def perform_taint_untaint(self, what_to_do: str) -> None:
resources = [
Expand Down
5 changes: 2 additions & 3 deletions test/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.5.3",
"serial": 155,
"serial": 164,
"lineage": "09f4e751-05ca-401e-12e8-cd0b60f5e417",
"outputs": {},
"resources": [
Expand All @@ -12,6 +12,7 @@
"provider": "provider[\"registry.terraform.io/hashicorp/random\"]",
"instances": [
{
"status": "tainted",
"schema_version": 0,
"attributes": {
"id": "84",
Expand Down Expand Up @@ -60,7 +61,6 @@
},
{
"index_key": 2,
"status": "tainted",
"schema_version": 0,
"attributes": {
"id": "27",
Expand All @@ -74,7 +74,6 @@
},
{
"index_key": 3,
"status": "tainted",
"schema_version": 0,
"attributes": {
"id": "66",
Expand Down

0 comments on commit dc08bd1

Please sign in to comment.