Fix default pylint config for collections.

pull/59486/head
Matt Clay 5 years ago
parent 3581e63ca8
commit d65d8d6e13

@ -176,7 +176,10 @@ class PylintTest(SanitySingleVersion):
rcfile = os.path.join(ANSIBLE_ROOT, 'test/sanity/pylint/config/%s' % context.split('/')[0])
if not os.path.exists(rcfile):
rcfile = os.path.join(ANSIBLE_ROOT, 'test/sanity/pylint/config/default')
if data_context().content.collection:
rcfile = os.path.join(ANSIBLE_ROOT, 'test/sanity/pylint/config/collection')
else:
rcfile = os.path.join(ANSIBLE_ROOT, 'test/sanity/pylint/config/default')
parser = ConfigParser()
parser.read(rcfile)

Loading…
Cancel
Save