diff options
Diffstat (limited to 'lib/ansible/modules/cloud/amazon/lambda_event.py')
-rw-r--r-- | lib/ansible/modules/cloud/amazon/lambda_event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/amazon/lambda_event.py b/lib/ansible/modules/cloud/amazon/lambda_event.py index f7298cb548..6484c0993a 100644 --- a/lib/ansible/modules/cloud/amazon/lambda_event.py +++ b/lib/ansible/modules/cloud/amazon/lambda_event.py @@ -222,7 +222,7 @@ def validate_params(module, aws): function_name = module.params['lambda_function_arn'] # validate function name - if not re.search('^[\w\-:]+$', function_name): + if not re.search(r'^[\w\-:]+$', function_name): module.fail_json( msg='Function name {0} is invalid. Names must contain only alphanumeric characters and hyphens.'.format(function_name) ) |