[ussuri-train-only] Use more recent version of ansible-lint
we need fix[1] to bypass RepresenterError when using to_yaml filter.
[1] https://github.com/ansible/ansible-lint/pull/518
Change-Id: I8eead4d1a4ceac3d053af69e302c5b757c45cdaa
(cherry picked from commit d88808d063
)
This commit is contained in:
parent
ed94cfb941
commit
b6ee862a1b
|
@ -1,5 +1,4 @@
|
|||
import os
|
||||
import six
|
||||
import yaml
|
||||
|
||||
from ansiblelint import AnsibleLintRule
|
||||
|
@ -106,7 +105,7 @@ class ValidationHasMetadataRule(AnsibleLintRule):
|
|||
'*metadata* should contain a %s key' % info))
|
||||
continue
|
||||
if not isinstance(metadata.get(info),
|
||||
six.string_types):
|
||||
str):
|
||||
results.append((
|
||||
{path: data},
|
||||
'*%s* should be a string' % info))
|
||||
|
|
|
@ -22,7 +22,7 @@ repos:
|
|||
types: [file, yaml]
|
||||
entry: yamllint --strict -f parsable
|
||||
- repo: https://github.com/ansible/ansible-lint.git
|
||||
rev: v4.2.0
|
||||
rev: v4.3.5
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
always_run: true
|
||||
|
|
Loading…
Reference in New Issue