From 4317522a8dd959d2b79f83705088be6eb8adc79f Mon Sep 17 00:00:00 2001 From: badra001 Date: Tue, 25 Apr 2023 12:33:24 -0400 Subject: [PATCH] fix --- code/ddns-lambda.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index d620c32..8fdf5ae 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -73,7 +73,7 @@ LOGGER = logging.getLogger() account_id = None region = None -VERSION = '1.2.0b45' +VERSION = '1.2.0b46' # Read Env variables DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO') @@ -297,7 +297,7 @@ def lambda_handler( global phz_collection_by_vpc global count - count['start'] = datetime.now() + count['start'] = datetime.datetime.now() LOGGER.info("event: %s", str(event) + lineno()) LOGGER.info("context: %s", str(context) + lineno()) LOGGER.info("Sns Topic Mode: %s, sending to %s", str(SNS_ENABLE), SNS_TOPIC_ARN) @@ -1005,7 +1005,7 @@ def lambda_handler( instance_id, lineno()) caller_response.insert(0, 'Successfully created recordsets') - count['end'] = datetime.now() + count['end'] = datetime.datetime.now() count['elapsed_ms'] = (count['end'] - count['start']).total_seconds() * 1000.0 LOGGER.info(f"{APPNAME} stats: source={event_source} state={state} " + ' '.join([f"{c}={count[c]}" for c in sorted(count.keys())]))