mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Bugfix: proper plugin configuration was reset
Before this patch, if config was ['/some/path'] then it would enter the
else block and config would be set to [].
The regression this patch fixes was introduced by 700db154.
This commit is contained in:
@@ -75,3 +75,7 @@ class TestErrors(unittest.TestCase):
|
||||
#with patch('glob.glob', mock_glob):
|
||||
# pass
|
||||
|
||||
def test_plugin__config(self):
|
||||
config = ['/one', '/two']
|
||||
pl = PluginLoader('test', '', config, 'test_plugin')
|
||||
self.assertEqual(pl.config, config)
|
||||
|
||||
Reference in New Issue
Block a user