Skip to content

Commit

Permalink
Merge pull request #15 from test-kitchen/develop
Browse files Browse the repository at this point in the history
develop to master (version 0.2.1)
  • Loading branch information
poliva83 authored Aug 22, 2016
2 parents b3608e8 + 4580d0d commit c82cb62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* Do not use methods from Kitchen::SSHBase as we are no longer inherit them. Rely on instance.transport instead.

## 0.2.0

* Switch SSH api to use gateway-enabled wrapper, instead of raw Kitchen::SSH, which does not support ssh gateways.
Expand Down
6 changes: 4 additions & 2 deletions lib/kitchen/driver/opennebula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def create(state)
end

def tcp_check(state)
wait_for_sshd(state[:hostname]) unless config[:no_ssh_tcp_check]
instance.transport.connection(state).wait_until_ready unless config[:no_ssh_tcp_check]
sleep(config[:no_ssh_tcp_check_sleep]) if config[:no_ssh_tcp_check]
debug("SSH ready on #{instance.to_str}")
end
Expand All @@ -145,7 +145,9 @@ def wait_for_passwordless_sudo(state)
retries = config[:passwordless_sudo_timeout] || 300
retry_interval = config[:passwordless_sudo_retry_interval] || 10
begin
remote_command(state, 'sudo -n true')
instance.transport.connection(state) do |conn|
conn.execute('sudo -n true')
end
rescue Kitchen::Transport::SshFailed => e
if (e.message.eql? "SSH exited (1) for command: [sudo -n true]") && (retries >= 0)
sleep retry_interval
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/opennebula_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ module Kitchen
module Driver

# Version string for Opennebula Kitchen driver
OPENNEBULA_VERSION = "0.2.0"
OPENNEBULA_VERSION = "0.2.1"
end
end

0 comments on commit c82cb62

Please sign in to comment.