One more.

This commit is contained in:
Felix Fontein 2020-03-22 22:58:29 +01:00
parent 94c21f03bb
commit b7f3cf6444

View file

@ -143,7 +143,7 @@ class OneViewBaseTestCase(object):
def __set_module_examples(self): def __set_module_examples(self):
# Load scenarios from module examples (Also checks if it is a valid yaml) # Load scenarios from module examples (Also checks if it is a valid yaml)
ansible = __import__('ansible') ansible_collections = __import__('ansible_collections')
testing_module = self.testing_class.__module__.split('.')[-1] testing_module = self.testing_class.__module__.split('.')[-1]
self.testing_module = getattr(ansible_collections.community.general.plugins.modules.remote_management.oneview, testing_module) self.testing_module = getattr(ansible_collections.community.general.plugins.modules.remote_management.oneview, testing_module)