Skip to content

Commit

Permalink
Add strict validation about boolean/array
Browse files Browse the repository at this point in the history
... to avoid unexpected behavior caused by wrong types.

Change-Id: Ie24246c828e6bb49ac169cbafba8b971243d3b2a
  • Loading branch information
kajinamit committed Mar 19, 2023
1 parent b6dd569 commit 4f6e8f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/controller.pp
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@

include ovn::params

validate_legacy(Boolean, 'validate_bool', $enable_dpdk)
validate_legacy(String, 'validate_string', $ovn_remote)
validate_legacy(String, 'validate_string', $ovn_encap_ip)
validate_legacy(Boolean, 'validate_bool', $enable_dpdk)
validate_legacy(Array, 'validate_array', $ovn_transport_zones)
validate_legacy(Boolean, 'validate_bool', $enable_ovn_match_northd)
validate_legacy(Boolean, 'validate_bool', $ovn_monitor_all)
validate_legacy(Boolean, 'validate_bool', $manage_ovs_bridge)
validate_legacy(Array, 'validate_array', $ovn_controller_extra_opts)

Expand Down

0 comments on commit 4f6e8f4

Please sign in to comment.