diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index dbf3804..156c583 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -67,14 +67,13 @@ from botocore.exceptions import ClientError from collections import OrderedDict from pprint import pformat -from datetime import datetime # Setting Global Variables LOGGER = logging.getLogger() ACCOUNT = None REGION = None -VERSION = '0.1.5' +VERSION = '0.1.6' # Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc] LOGGER.setLevel(logging.DEBUG) @@ -1593,7 +1592,7 @@ def add_heritage_item_timestamp(data, key): :param str key: The key for the key to contain the timestamp :return: This adds the key and current timestamp to the heritage dict items. There is no return value. """ - data['items'][str(key)] = int(datetime.now().timestamp()) + data['items'][str(key)] = int(datetime.datetime.now().timestamp()) def format_heritage(data): diff --git a/code/ddns-lambda.zip b/code/ddns-lambda.zip index 3ce565a..311f25e 100644 Binary files a/code/ddns-lambda.zip and b/code/ddns-lambda.zip differ