mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 00:01:08 +00:00
Update module test code to avoid pycs (that are not used)
This commit is contained in:
@@ -16,7 +16,7 @@ class TestModules(unittest.TestCase):
|
||||
for (dirpath, dirnames, filenames) in os.walk(path):
|
||||
for filename in filenames:
|
||||
(path, ext) = os.path.splitext(filename)
|
||||
if ext != ".ps1":
|
||||
if ext == ".py":
|
||||
module_list.append(os.path.join(dirpath, filename))
|
||||
return module_list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user