From 6fefd102bf721f581e121c77422a5316d72c57b2 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 18 Jan 2019 10:09:46 -0500 Subject: [PATCH] Look for parameters in parameter_groups Look for used parameters in parameter_groups This patch searches for parameter use in the parameter_groups section as well and should eliminate some false positive warnings with our validations. Change-Id: I67c5ad2b6e865d454489702e5eb263a9508d26d2 --- tools/yaml-validate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py index e107d626d8..b268885232 100755 --- a/tools/yaml-validate.py +++ b/tools/yaml-validate.py @@ -1152,8 +1152,9 @@ def validate(filename, param_map): in_resources = str_p in str(tpl.get('resources', {})) in_outputs = str_p in str(tpl.get('outputs', {})) in_conditions = str_p in str(tpl.get('conditions', {})) + in_parameter_groups = str_p in str(tpl.get('parameter_groups', {})) if (not in_resources and not in_outputs and not in_conditions - and args.quiet < 2): + and not in_parameter_groups and args.quiet < 2): print('Warning: parameter %s in template %s ' 'appears to be unused' % (p, filename))