Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/concerns/hostext/smart_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def smart_proxy_ids
ids << s.dhcp_id
ids << s.tftp_id
ids << s.dns_id
ids << s.bmc_id
end
ids << domain.dns_id if domain.present?
ids << realm.realm_proxy_id if realm.present?
Expand Down
3 changes: 2 additions & 1 deletion test/models/host_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3300,7 +3300,8 @@ def to_managed!
host.subnet.tftp_id = 2
host.subnet.dhcp_id = 3
host.subnet.dns_id = 4
assert host.smart_proxy_ids, [1, 2, 3, 4]
host.subnet.bmc_id = 5
assert host.smart_proxy_ids, [1, 2, 3, 4, 5]
end

context 'from hostgroup' do
Expand Down