Make an OpenStackModule base class

In module_utils we have a bunch of factory functions that we expect
people to use in a certain combination to build a module, then we
pass around a reference to the SDK and to the connection we created.
That's largely just due to how this stuff grew organically.

Instead, create a base class to be used in the modules. For now it
allows us to clean things up a bit. But as a follow on - it should
maybe help us put in things like richer logging collection which
would otherwise need to be done with helper methods and whatnot.

Change-Id: I487e79fe18c0b9a75df7dacd224ab40ed7f4e1ab
This commit is contained in:
Sagi Shnaidman
2020-01-30 00:53:58 +02:00
committed by Artem Goncharov
parent cb2c6f403e
commit ae0303d482
3 changed files with 176 additions and 149 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.tox
build_artifact
ansible_collections