mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 02:26:12 +10:00
Fix ssh key fingerprinting test to use exitcode
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user