Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 24, 2023
1 parent c1ea6b5 commit 436e8b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ def lambda_handler(
'A',
private_ip
)
append_msg = f'A record in zone id: {final_hosted_zone_id} for hostname {final_private_hostname} ' + \
f'zone {final_hosted_zone_name} to value {private_ip}'
append_msg = f"A record in zone id: {final_hosted_zone_id} for hostname {final_private_hostname} " + \
f"zone {final_hosted_zone_name} to value {private_ip}"
if create_response == 'success':
LOGGER.info("instance: %s, Created %s",
instance_id, append_msg + lineno())
Expand All @@ -789,8 +789,8 @@ def lambda_handler(
'TXT',
heritage_value
)
append_msg = f'TXT record in zone id: {reverse_lookup_zone_id} for hostname {final_private_hostname} ' + \
f'zone {final_hosted_zone_name} to value {heritage_value}'
append_msg = f"TXT record in zone id: {reverse_lookup_zone_id} for hostname {final_private_hostname} " + \
f"zone {final_hosted_zone_name} to value {heritage_value}"

if create_response == 'success':
LOGGER.info("instance: %s, Created %s",
Expand Down Expand Up @@ -818,8 +818,8 @@ def lambda_handler(
'PTR',
create_fqdn(final_private_hostname, final_hosted_zone_name),
)
append_msg = f'PTR record in zone id: {reverse_lookup_zone_id} for hostname {tag_data['ptr_entry'].hostname} ' + \
f'zone {tag_data['ptr_entry'].zonename} to value {final_private_dns_name}'
append_msg = f"PTR record in zone id: {reverse_lookup_zone_id} for hostname {tag_data['ptr_entry'].hostname} " + \
f"zone {tag_data['ptr_entry'].zonename} to value {final_private_dns_name}"
if create_response == 'success':
LOGGER.info("instance: %s, Created %s",
instance_id, append_msg + lineno())
Expand Down Expand Up @@ -847,8 +847,8 @@ def lambda_handler(
'TXT',
heritage_value
)
append_msg = f'TXT record in zone id: {reverse_lookup_zone_id} for hostname {tag_data['ptr_entry'].hostname} ' + \
f'zone {tag_data['ptr_entry'].zonename} to value {heritage_value}'
append_msg = f"TXT record in zone id: {reverse_lookup_zone_id} for hostname {tag_data['ptr_entry'].hostname} " + \
f"zone {tag_data['ptr_entry'].zonename} to value {heritage_value}"

if create_response == 'success':
LOGGER.info("instance: %s, Created %s",
Expand Down

0 comments on commit 436e8b3

Please sign in to comment.