Skip to content

Commit

Permalink
Fix drift check logic for no chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragsoni-employ committed Nov 25, 2024
1 parent ac2fcb2 commit c269f86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/iac_utils/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ func (tu TerraformUtils) GetSummaryFromPlanJson(planJson string) (bool, *IacSumm
}
}

if tfplan.OutputChanges != nil {
isPlanEmpty = false
for _, change := range tfplan.OutputChanges {
if len(change.Actions) != 1 || change.Actions[0] != "no-op" {
isPlanEmpty = false
break
}
}

planSummary := IacSummary{}
Expand Down

0 comments on commit c269f86

Please sign in to comment.