Merge "Look for parameters in parameter_groups"

This commit is contained in:
Zuul 2019-01-29 02:35:33 +00:00 committed by Gerrit Code Review
commit 70068d220d

View File

@ -1143,8 +1143,9 @@ def validate(filename, param_map):
in_resources = str_p in str(tpl.get('resources', {})) in_resources = str_p in str(tpl.get('resources', {}))
in_outputs = str_p in str(tpl.get('outputs', {})) in_outputs = str_p in str(tpl.get('outputs', {}))
in_conditions = str_p in str(tpl.get('conditions', {})) 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 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 ' print('Warning: parameter %s in template %s '
'appears to be unused' % (p, filename)) 'appears to be unused' % (p, filename))