Remove six usage in ValidationHasMetadataRule.py

The python 2.x support has been dropped wo we don't need it anymore.

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I6a5971413852ed94407704285f071dee96302b1f
This commit is contained in:
Gael Chamoulaud (Strider) 2021-02-09 13:29:07 +01:00
parent f6144ea95f
commit a08c2deabb
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import os import os
import six
import yaml import yaml
from ansiblelint import AnsibleLintRule from ansiblelint import AnsibleLintRule
@ -105,8 +104,7 @@ class ValidationHasMetadataRule(AnsibleLintRule):
{path: data}, {path: data},
'*metadata* should contain a %s key' % info)) '*metadata* should contain a %s key' % info))
continue continue
if not isinstance(metadata.get(info), if not isinstance(metadata.get(info), str):
six.string_types):
results.append(( results.append((
{path: data}, {path: data},
'*%s* should be a string' % info)) '*%s* should be a string' % info))