Skip to content

Commit

Permalink
Merge pull request #16924 from syncrou/add_try_to_array_lookup
Browse files Browse the repository at this point in the history
No longer assume that a value is an array
(cherry picked from commit 27b975a)

https://bugzilla.redhat.com/show_bug.cgi?id=1541171
  • Loading branch information
gmcculloug authored and simaishi committed Feb 1, 2018
1 parent 01a0178 commit b1c1ae0
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -155,7 +155,7 @@ def set_on_vm_id_changed
f[:notes] = vm_description
when :vlan
get_field(:vlan)
vlan ||= @values[fn].first
vlan ||= Array(@values[fn]).first
set_value_from_list(fn, f, vlan, allowed_vlans)
end
end
Expand Down

0 comments on commit b1c1ae0

Please sign in to comment.