Commit 6fd88b8cbba62d1af4e249cee455a30df0eb0b1b

Authored by Jaakko Kantojärvi
1 parent 04186e97

Fix ssh key fingerprinting test to use exitcode

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/key.rb
@@ -45,7 +45,7 @@ class Key < ActiveRecord::Base @@ -45,7 +45,7 @@ class Key < ActiveRecord::Base
45 file.close 45 file.close
46 file.unlink # deletes the temp file 46 file.unlink # deletes the temp file
47 end 47 end
48 - errors.add(:key, "can't be fingerprinted") if fingerprint_output.match("failed") 48 + errors.add(:key, "can't be fingerprinted") if $?.exitstatus != 0
49 end 49 end
50 50
51 def set_identifier 51 def set_identifier