Fix validation of datapath_type

Commit 5c809de016 updated default value
of $datapath_type but the validation logic was not properly updated.
This change fixes the logic so that it properly fail with the new
default value (undef).

Change-Id: If44a90a817bf1fd5d5b9bd15fa915243a048a196
This commit is contained in:
Takashi Kajinami 2022-04-14 17:21:59 +09:00
parent 3bac73d8c3
commit ad6d4bdbe9
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class ovn::controller(
include ovn::params
if $enable_dpdk and is_service_default($datapath_type) {
if $enable_dpdk and (is_service_default($datapath_type) or $datapath_type == undef){
fail('Datapath type must be set when DPDK is enabled')
}