Fix ssh key fingerprinting test to use exitcode

5-0-stable
Jaakko Kantojärvi 2013-02-15 11:16:21 +02:00
parent 04186e9797
commit 6fd88b8cbb
1 changed files with 1 additions and 1 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