Skip to content
Snippets Groups Projects
Commit 6fd88b8c authored by Jaakko Kantojärvi's avatar Jaakko Kantojärvi
Browse files

Fix ssh key fingerprinting test to use exitcode

parent 04186e97
No related branches found
No related tags found
1 merge request!2996Ssh fingerprint fix
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment