Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a DVPortGroup from overwriting a LAN with the same name in provisioning #14292

Merged
Merged
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
2 changes: 1 addition & 1 deletion app/models/miq_provision_virt_workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def available_vlans_and_hosts(options = {})
# TODO: Use Active Record to preload this data?
MiqPreloader.preload(hosts, :switches => :lans)
hosts.each do |h|
h.lans.each { |l| vlans[l.name] = l.name if @vlan_options[:dvs] || !l.switch.shared? }
h.lans.each { |l| vlans[l.name] = l.name unless l.switch.shared? }
end
rails_logger('allowed_vlans', 1)
end
Expand Down