Fix more includes.

This commit is contained in:
Felix Fontein
2020-03-22 22:09:21 +01:00
parent 8740d8d185
commit a01b831bd3
6 changed files with 18 additions and 14 deletions

View File

@@ -40,7 +40,7 @@ class OneViewBaseTest(object):
resource_module_path_name = 'oneview_' + str.join('_', resource_module_path_name).lower()
ansible = __import__('ansible')
oneview_module = ansible.modules.remote_management.oneview
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)
testing_module = self.testing_class.__module__.split('.')[-1]
@@ -145,7 +145,7 @@ class OneViewBaseTestCase(object):
# Load scenarios from module examples (Also checks if it is a valid yaml)
ansible = __import__('ansible')
testing_module = self.testing_class.__module__.split('.')[-1]
self.testing_module = getattr(ansible.modules.remote_management.oneview, testing_module)
self.testing_module = getattr(ansible_collections.community.general.plugins.modules.remote_management.oneview, testing_module)
try:
# Load scenarios from module examples (Also checks if it is a valid yaml)