Skip to content

Commit

Permalink
Adding the option to set default vlan
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonaKaplan committed Nov 20, 2017
1 parent 2a3700b commit d816567
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/miq_provision_virt_workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,17 @@ def set_on_vm_id_changed
when :src_vm_id
f[:notes] = vm_description
when :vlan
get_field(:vlan)
vlan_field = get_field(:vlan)
vlan = set_default_vlan(vlan, vlan_field)
set_value_from_list(fn, f, vlan, allowed_vlans)
end
end
end

def set_default_vlan(vlan, _vlan_field)
vlan
end

def vm_name_preview(_options = {})
end

Expand Down

0 comments on commit d816567

Please sign in to comment.