Merge pull request #2996 from raphendyr/ssh_fingerprint_fix

Ssh fingerprint fix
This commit is contained in:
Dmitriy Zaporozhets 2013-02-18 09:56:35 -08:00
commit ea28519f57
5 changed files with 17 additions and 4 deletions

View file

@ -45,7 +45,7 @@ class Key < ActiveRecord::Base
file.close
file.unlink # deletes the temp file
end
errors.add(:key, "can't be fingerprinted") if fingerprint_output.match("failed")
errors.add(:key, "can't be fingerprinted") if $?.exitstatus != 0
end
def set_identifier