Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 25, 2023
1 parent febebd3 commit 7b51451
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,9 @@ def lambda_handler(
process_response = process_delete_records(
route53,
instance_id,
final_hosted_zone_id,
zone_data_forward.zone_id,
final_private_hostname,
final_hosted_zone_name,
zone_data_forward.name,
'A',
private_ip,
heritage_value
Expand All @@ -861,15 +861,11 @@ def lambda_handler(
process_response = process_delete_records(
route53,
instance_id,
reverse_lookup_zone_id,
# reversed_ip_address,
# 'in-addr.arpa.',
# reversed_entry,
# reversed_lookup_zone,
zone_data_reverse.zone_id,
tag_data['ptr_entry'].hostname,
tag_data['ptr_entry'].zonename,
'PTR',
final_private_dns_name,
create_fqdn(final_private_hostname, final_hosted_zone_name),
heritage_value
)
# only true if existing delete_records and the delete_success from the subroutine is true
Expand Down Expand Up @@ -906,7 +902,7 @@ def lambda_handler(
cname_host_name,
cname_domain_suffix,
'CNAME',
final_private_dns_name
create_fqdn(final_private_hostname, final_hosted_zone_name),
)
append_msg = f"CNAME record in zone id: {cname_domain_suffix_id} owner {phz_collection_by_vpc[cname_domain_suffix]['owner_account']} " + \
f"hostname {cname_host_name} in zone {cname_domain_suffix} with value {final_private_dns_name}"
Expand Down Expand Up @@ -964,7 +960,7 @@ def lambda_handler(
cname_host_name,
cname_domain_suffix,
'CNAME',
final_private_dns_name,
create_fqdn(final_private_hostname, final_hosted_zone_name),
heritage_value
)

Expand Down

0 comments on commit 7b51451

Please sign in to comment.