mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix more includes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user