Fix ssh key fingerprinting test to use exitcode
This commit is contained in:
parent
04186e9797
commit
6fd88b8cbb
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class Key < ActiveRecord::Base
|
||||||
file.close
|
file.close
|
||||||
file.unlink # deletes the temp file
|
file.unlink # deletes the temp file
|
||||||
end
|
end
|
||||||
errors.add(:key, "can't be fingerprinted") if fingerprint_output.match("failed")
|
errors.add(:key, "can't be fingerprinted") if $?.exitstatus != 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_identifier
|
def set_identifier
|
||||||
|
|
Loading…
Add table
Reference in a new issue