Fix issue with wrong call of SSHManager

Change-Id: I4761bcfd9f7d742035aa050ef258aaca9810618a
This commit is contained in:
Vasily Gorin 2016-08-26 13:43:09 +03:00
parent 27a4489cb4
commit db91c613b4
2 changed files with 4 additions and 4 deletions

View File

@ -337,12 +337,13 @@ def check_service(ip, commands):
example of commands:
['nova-manage service list | grep vcenter-vmcluster1'
"""
SSHManager.execute_on_remote(ip=ip, cmd='source openrc')
ssh_manager = SSHManager()
ssh_manager.execute_on_remote(ip=ip, cmd='source openrc')
for cmd in commands:
wait(
lambda:
':-)' in SSHManager.execute_on_remote(ip=ip,
':-)' in ssh_manager.execute_on_remote(ip=ip,
cmd=cmd)['stdout'][-1],
timeout=200)

View File

@ -54,8 +54,7 @@ class TestDVSSmoke(TestBasic):
self.show_step(1)
self.show_step(2)
plugin.install_dvs_plugin(
self.ssh_manager.admin_ip)
plugin.install_dvs_plugin(self.ssh_manager.admin_ip)
cmd = 'fuel plugins list'