net-ssh-backports 6.3.2.backports → 6.3.3.backports
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/net/ssh/known_hosts.rb +8 -6
- data/lib/net/ssh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 918c2ff0c3480a29680cb420ff7c17f3c09c1dfd77e825602fd2ed3cbe5d1eac
|
4
|
+
data.tar.gz: 56d4d76d1c08be13634ff811989ca3826acade09a1fe99910e3ff55f93557916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f6d6b0478fc004842a2cb1c1d18d7ed8680884d6fe8fec4aa5960d5c1d2fe1490678b67a4798e4832a8143cc4de01cbc41c1a3edd66eb5ac8901c4ba7fea11a
|
7
|
+
data.tar.gz: 74b7797a3a061f980ce70ad183ed15670b101c1708fa6456d23d0418e02d759d78669d8c7fd4e768fdf935e251b36f9ca0877dacc712c0340179672f53673ff7
|
data/lib/net/ssh/known_hosts.rb
CHANGED
@@ -143,12 +143,14 @@ module Net
|
|
143
143
|
# add an entry for the given host and key to the first file it is able
|
144
144
|
# to.
|
145
145
|
def add(host, key, options={})
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
146
|
+
begin
|
147
|
+
hostfiles(options, :user).each do |file|
|
148
|
+
KnownHosts.new(file).add(host, key)
|
149
|
+
return
|
150
|
+
end
|
151
|
+
rescue SystemCallError
|
152
|
+
# try the next hostfile
|
153
|
+
end
|
152
154
|
end
|
153
155
|
end
|
154
156
|
|
data/lib/net/ssh/version.rb
CHANGED