Fix more tests.

This commit is contained in:
Felix Fontein
2020-03-22 22:51:01 +01:00
parent a01b831bd3
commit 94c21f03bb
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class OneViewBaseTest(object):
resource_module_path_name = re.findall('[A-Z][^A-Z]*', resource_module_path_name)
resource_module_path_name = 'oneview_' + str.join('_', resource_module_path_name).lower()
ansible = __import__('ansible')
ansible_collections = __import__('ansible_collections')
oneview_module = ansible_collections.community.general.plugins.modules.remote_management.oneview
resource_module = getattr(oneview_module, resource_module_path_name)
self.testing_class = getattr(resource_module, resource_name)