kitchen-ansible 0.45.7 → 0.45.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b00a9674e668b86b488ce14f67da8e73374ac83f
4
- data.tar.gz: ab54bf0e18c0f57b53a8125b11fbaec5a5d6ef88
3
+ metadata.gz: 82fdbc0338733ece9803eb436e18c4c7ec9696a7
4
+ data.tar.gz: 6bb091fb45e32299f08a6b8a77c9af9faa0bb730
5
5
  SHA512:
6
- metadata.gz: 36dcd2a544372bde6cb2c5164439a8012e9c1937e089e467f0501ad6dd40bc527b16f4e9a06c96b3cdb4e8122d0fcdadaa607aafd81fd5ae539917cdcd6ee4a2
7
- data.tar.gz: cc42c36738d28f74e816a94b88db1a1c0dedf16e6adbd8c0c472d1d8b4350bfd6f7f9dd6655fdce01431e37c2d5295e2765a51ff2be1c06cee406a368e467279
6
+ metadata.gz: cecd51eb3cdc495e8d6d274c6706efc5fdbc2bbcbf0d6bec017a4ee6dca9903b033575e24dd82b1340bb3b52242c02d55fbec4dfebd7b5c97ce6591365a34cf3
7
+ data.tar.gz: d2792b3e2c0acc1ce5810d8ab0bbbe99c8c8f3899a73b11880d0458487e7f74b05a2ca863e75d76fc35bf8dafe86ab39defa57da52a7cd254f0140b7553b1204
@@ -297,7 +297,12 @@ module Kitchen
297
297
  if config[:ssh_known_hosts]
298
298
  config[:ssh_known_hosts].each do |host|
299
299
  info("Add #{host} to ~/.ssh/known_hosts")
300
- commands << "ssh-keyscan #{host} > ~/.ssh/known_hosts 2> /dev/null"
300
+ if host.include? ':'
301
+ stripped_host, port = host.split(':')
302
+ commands << "ssh-keyscan -p #{port} #{stripped_host} >> ~/.ssh/known_hosts 2> /dev/null"
303
+ else
304
+ commands << "ssh-keyscan #{host} >> ~/.ssh/known_hosts 2> /dev/null"
305
+ end
301
306
  end
302
307
  end
303
308
 
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.45.7'
4
+ VERSION = '0.45.8'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.7
4
+ version: 0.45.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2017-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen