From 58dc6fe27179ee77e5707196c11ab035ce8e4d7a Mon Sep 17 00:00:00 2001 From: PeterGroesbeck Date: Tue, 21 Nov 2023 11:04:10 -0600 Subject: [PATCH] MWAA regex improvement for validating profiles --- MWAA/verify_env/verify_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MWAA/verify_env/verify_env.py b/MWAA/verify_env/verify_env.py index 2920242..ae9f485 100644 --- a/MWAA/verify_env/verify_env.py +++ b/MWAA/verify_env/verify_env.py @@ -89,7 +89,7 @@ def validation_profile(profile_name): ''' verify profile name doesn't have path to files or unexpected input ''' - if re.match(r"^[a-zA-Z0-9]*$", profile_name): + if re.match(r"^[a-zA-Z0-9-_]*$", profile_name): return profile_name raise argparse.ArgumentTypeError("%s is an invalid profile name value" % profile_name)