Skip to content

Commit

Permalink
Fix UnboundLocalError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-jcarlson committed Sep 5, 2024
1 parent 55706a5 commit 59bd106
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/utils_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ def list_hosted_zones(account):


def list_resource_record_sets(account_id, account_name, hosted_zone_id):
record_set_list = []

boto3_session = assume_role(account_id)
route53 = boto3_session.client("route53")

try:
paginator_records = route53.get_paginator("list_resource_record_sets")
pages_records = paginator_records.paginate(
Expand Down

0 comments on commit 59bd106

Please sign in to comment.