Add SALT API client
diff --git a/tcp_tests/managers/openstack_manager.py b/tcp_tests/managers/openstack_manager.py
index b8725bd..55af1e2 100644
--- a/tcp_tests/managers/openstack_manager.py
+++ b/tcp_tests/managers/openstack_manager.py
@@ -12,18 +12,22 @@
# License for the specific language governing permissions and limitations
# under the License.
-class OpenstackManager(object):
+from tcp_tests.managers.execute_commands import ExecuteCommandsMixin
+
+
+class OpenstackManager(ExecuteCommandsMixin):
"""docstring for OpenstackManager"""
- __config = None
- __underlay = None
+ _config = None
+ _underlay = None
- def __init__(self, config, underlay):
- self.__config = config
- self.__underlay = underlay
+ def __init__(self, config, underlay, salt):
+ self._config = config
+ self._underlay = underlay
+ self._salt = salt
super(OpenstackManager, self).__init__()
def install(self, commands):
- self.__underlay.execute_commands(commands=commands,
- label="Install OpenStack services")
- self.__config.openstack.openstack_installed = True
+ self.execute_commands(commands,
+ label='Install OpenStack services')
+ self._config.common_services.common_services_installed = True