Make validate work with latest cfn-lint library
This commit is contained in:
parent
3c4044cdb8
commit
8fbe40771e
@ -303,7 +303,7 @@ class Stack(object):
|
|||||||
(args, filenames, formatter) = cfnlint.core.get_args_filenames(lint_args)
|
(args, filenames, formatter) = cfnlint.core.get_args_filenames(lint_args)
|
||||||
(template, rules, matches) = cfnlint.core.get_template_rules(filename, args)
|
(template, rules, matches) = cfnlint.core.get_template_rules(filename, args)
|
||||||
if not matches:
|
if not matches:
|
||||||
matches.extend(cfnlint.core.run_cli(filename, template, rules, ['us-east-1'], None))
|
matches.extend(cfnlint.core.run_checks(filename, template, rules, [self.region]))
|
||||||
if len(matches):
|
if len(matches):
|
||||||
for match in matches:
|
for match in matches:
|
||||||
logger.error(formatter._format(match))
|
logger.error(formatter._format(match))
|
||||||
|
Loading…
Reference in New Issue
Block a user