Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 26, 2023
1 parent 45e5f37 commit 406eef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@ def lambda_handler(
instance = get_item_from_dynamodb_table(dynamodb_client, DDBNAME, instance_id)
LOGGER.info("instance attributes: %s", str(instance) + lineno())
try:
LOGGER.info(f"instance_data type {type(instance)} {lineno()}")
instance_data = json.loads(instance)
## LOGGER.info(f"instance_data type {type(instance)} {lineno()}")
## instance_data = json.loads(instance)
LOGGER.info(f"getting _DnsEntries {lineno()}")
dns_data_raw = instance_data.get('_DnsEntries', [])
dns_data_raw = instance.get('_DnsEntries', [])
LOGGER.info(
f"got _DnsEntries type {type(dns_data_raw)} value {dns_data_raw} {lineno()}")
dns_data = [dns_data_tuple(**item) for item in dns_data_raw]
Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit 406eef6

Please sign in to comment.