Skip to content
Snippets Groups Projects
Commit 66a1ff11 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Better WDS client finding

parent 0e0957c7
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,9 @@ class WdsServer < ApplicationRecord ...@@ -59,7 +59,9 @@ class WdsServer < ApplicationRecord
end end
def client(host) def client(host)
clients.find { |c| [host.mac, host.name].include? c[:device_id] } clients.find do |c|
[host.mac.upcase.tr(':', '-'), host.name].include?(c[:device_id]) || [host.name, host.shortname].include?(c[:device_name])
end
end end
def boot_images def boot_images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment