summaryrefslogtreecommitdiff
path: root/app/models/key.rb
diff options
context:
space:
mode:
authorJaakko Kantojärvi <jaakko@n-1.fi>2013-02-15 11:16:21 +0200
committerJaakko Kantojärvi <jaakko@n-1.fi>2013-02-15 11:16:21 +0200
commit6fd88b8cbba62d1af4e249cee455a30df0eb0b1b (patch)
tree80737d5c05cd0cb20d51437e135e4f2df647c9a1 /app/models/key.rb
parent04186e9797209ff5a9b2fd4025d458a6e2223f62 (diff)
downloadgitlab-ce-6fd88b8cbba62d1af4e249cee455a30df0eb0b1b.tar.gz
Fix ssh key fingerprinting test to use exitcode
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 895e8d6cb9c..580b8b73284 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