Commit 9c4015f3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #8430 from cirosantilli/simplify-ssh-fingerprint-regex

Simplify SSH fingerprint regexp extraction
parents 84e6fe36 5dbe94dc
......@@ -89,7 +89,7 @@ class Key < ActiveRecord::Base
end
if cmd_status.zero?
cmd_output.gsub /([\d\h]{2}:)+[\d\h]{2}/ do |match|
cmd_output.gsub /(\h{2}:)+\h{2}/ do |match|
self.fingerprint = match
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment