Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashS0510 committed Feb 11, 2025
1 parent e05dd6d commit 12b3f2e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tirith/providers/terraform_plan/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def direct_dependencies_operator(input_data: dict, provider_inputs: dict, output

for resource in config_resources:

if resource.get("type") != resource_type:
if resource.get("type") != resource_type:
continue
is_resource_found = True
deps_resource_type = {resource_id.split(".")[0] for resource_id in resource.get("depends_on", [])}
Expand Down Expand Up @@ -318,9 +318,9 @@ def direct_references_operator_referenced_by(input_data: dict, provider_inputs:

# Loop for adding reference_target
for resource_change in resource_changes:
if (not resource_type in (resource_change["type"])) or resource_change.get("change", {}).get(
"actions"
) == ["destroy"]:
if (not resource_type in (resource_change["type"])) or resource_change.get("change", {}).get("actions") == [
"destroy"
]:
continue
reference_target_addresses.add(resource_change.get("address"))
is_resource_found = True
Expand Down Expand Up @@ -408,9 +408,9 @@ def direct_references_operator_references_to(input_data: dict, provider_inputs:

for resource_change in resource_changes:

if ( resource_change.get("type") != resource_type) or resource_change.get(
"change", {}
).get("actions") == ["destroy"]:
if (resource_change.get("type") != resource_type) or resource_change.get("change", {}).get("actions") == [
"destroy"
]:
continue
is_resource_found = True
resource_type_count += 1
Expand Down

0 comments on commit 12b3f2e

Please sign in to comment.