Skip to content

Commit

Permalink
Merge pull request #736 from lago-project/fix_running_method_in_ssh_p…
Browse files Browse the repository at this point in the history
…rovider

Fix "running" method in SSHVMProvider
  • Loading branch information
ovirt-infra authored Jun 6, 2018
2 parents 6c17f75 + a92fec3 commit 00f249a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lago/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ def state(self, *args, **kwargs):
def running(self, *args, **kwargs):
try:
ssh.get_ssh_client(
ip_addr=self.ip(),
host_name=self.name(),
ip_addr=self.vm.ip(),
host_name=self.vm.name(),
propagate_fail=False,
ssh_key=self.virt_env.prefix.paths.ssh_id_rsa(),
username=self._spec.get('ssh-user'),
password=self._spec.get('ssh-password'),
ssh_tries=1,
ssh_key=self.vm.virt_env.prefix.paths.ssh_id_rsa(),
username=self.vm._spec.get('ssh-user'),
password=self.vm._spec.get('ssh-password'),
)
except ssh.LagoSSHTimeoutException:
return False
Expand Down

0 comments on commit 00f249a

Please sign in to comment.