Skip to content

Commit

Permalink
update code: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 26, 2022
1 parent a2b689a commit 419aa95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
"""
Expand Down Expand Up @@ -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())
# LOGGER.debug("Unexpected error: %s", str(err)+lineno())

Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit 419aa95

Please sign in to comment.