diff options
author | Jaakko Kantojärvi <jaakko@n-1.fi> | 2013-02-15 13:16:21 +0400 |
---|---|---|
committer | Jaakko Kantojärvi <jaakko@n-1.fi> | 2013-02-15 13:16:21 +0400 |
commit | 6fd88b8cbba62d1af4e249cee455a30df0eb0b1b (patch) | |
tree | 80737d5c05cd0cb20d51437e135e4f2df647c9a1 /app | |
parent | 04186e9797209ff5a9b2fd4025d458a6e2223f62 (diff) |
Fix ssh key fingerprinting test to use exitcode
Diffstat (limited to 'app')
-rw-r--r-- | app/models/key.rb | 2 |
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 |