Fix ssh key fingerprinting test to use exitcode

This commit is contained in:
Jaakko Kantojärvi 2013-02-15 11:16:21 +02:00
parent 04186e9797
commit 6fd88b8cbb

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