diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index 8bf68a7..b04e4fe 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -714,7 +714,7 @@ def lambda_handler( LOGGER.info("unexpected error. %s\n", str(err) + lineno()) # else: # not running so delete the records - elif state == 'terminating': + elif state == 'terminated': try: # pause 1 before deleting to avoid API limit