diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index d9f46af..c43675b 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -39,6 +39,7 @@ LOGGER = logging.getLogger() ACCOUNT = None REGION = None +VERSION = '0.0.2' # Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc] LOGGER.setLevel(logging.DEBUG) @@ -51,7 +52,7 @@ TAGKEY_ZONE = os.environ['TagKeyZone'] TAGKEY_HOSTNAME = os.environ['TagKeyHostName'] -print('Loading function ' + datetime.datetime.now().time().isoformat()) +print('Loading function v%s: %s'.format(VERSION,datetime.datetime.now().time().isoformat())) def lineno(): # pragma: no cover """ @@ -1658,4 +1659,5 @@ def get_subnet_cidr_block(client, subnet_id): # Message=str(message) # ) # except ClientError as err: -# LOGGER.debug("Unexpected error: %s", str(err)+lineno()) \ No newline at end of file +# LOGGER.debug("Unexpected error: %s", str(err)+lineno()) + diff --git a/code/ddns-lambda.zip b/code/ddns-lambda.zip index f0143ac..051068d 100644 Binary files a/code/ddns-lambda.zip and b/code/ddns-lambda.zip differ