diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index df64417..6b3ae20 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -72,7 +72,7 @@ LOGGER = logging.getLogger() ACCOUNT = None REGION = None -VERSION = '0.1.1' +VERSION = '0.1.2' # Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc] LOGGER.setLevel(logging.DEBUG) @@ -196,6 +196,7 @@ def lambda_handler( LOGGER.debug("account_id: %s", str(account_id) + lineno()) # Only doing something if the state is running + LOGGER.debug("instance state is {} {}".format(state, lineno())) if state == 'running': LOGGER.debug("sleeping for maximum {} seconds {}".format(SLEEPTIME, lineno())) @@ -1553,7 +1554,7 @@ def initialize_heritage(application_name, version='null', items={}): :param dict(str) items: A dict of key/value pairs to set on initialization. They key of version is not permitted here. :return dict(str): dict with the application name, version, and items ready for use """ - if application_name != '' and appication_name is not none: + if application_name != '' and application_name is not none: return { 'application_name': str(appname), 'version': str(version), diff --git a/code/ddns-lambda.zip b/code/ddns-lambda.zip index 8ef42fc..70a7a5d 100644 Binary files a/code/ddns-lambda.zip and b/code/ddns-lambda.zip differ