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
(cherry picked from commit a08c2deabb)
This commit is contained in:
Gael Chamoulaud (Strider) 2021-02-09 13:29:07 +01:00 committed by Sandeep Yadav
parent 6b181d8905
commit ef8854adde
1 changed files with 1 additions and 3 deletions

View File

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