summaryrefslogtreecommitdiff
path: root/app/models/key.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-18 09:56:35 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-18 09:56:35 -0800
commitea28519f5704c8dab74cba4d1e2039331504aafd (patch)
tree2efeeccb6bd080f37355e0bb844f40e9a44a1f61 /app/models/key.rb
parent97de6f851b54e87f5a01f9bbc16ce64464c88579 (diff)
parentc20be05a8075217db5ec2c0f6b6a6072b422268f (diff)
downloadgitlab-ce-ea28519f5704c8dab74cba4d1e2039331504aafd.tar.gz
Merge pull request #2996 from raphendyr/ssh_fingerprint_fix
Ssh fingerprint fix
Diffstat (limited to 'app/models/key.rb')
-rw-r--r--app/models/key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/key.rb b/app/models/key.rb
index 64441ea54eb..edb0bcd61fd 100644
--- a/app/models/key.rb
+++ b/app/models/key.rb
@@ -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