Fix ssh key fingerprinting test to use exitcode
This commit is contained in:
parent
04186e9797
commit
6fd88b8cbb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue