diff options
author | jpic <jamespic@gmail.com> | 2016-04-05 11:58:35 +0200 |
---|---|---|
committer | jpic <jamespic@gmail.com> | 2016-04-05 14:41:49 +0200 |
commit | da175d0a5722f3b54a9086b38325994f20307a3f (patch) | |
tree | 50b1259fe5d146c51b7991ab61341c357c1f41cc /test/units/plugins | |
parent | cca084c89d4e0390fdad8a44d1d21c7201bb1f37 (diff) | |
download | ansible-da175d0a5722f3b54a9086b38325994f20307a3f.tar.gz |
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.
Diffstat (limited to 'test/units/plugins')
-rw-r--r-- | test/units/plugins/test_plugins.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/plugins/test_plugins.py b/test/units/plugins/test_plugins.py index 76a2600f53..3543cbc230 100644 --- a/test/units/plugins/test_plugins.py +++ b/test/units/plugins/test_plugins.py @@ -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) |