Fix unknown variable warnings
Change-Id: Ie08de610b5c26f346fe2e92fc96d71aceca9b039
This commit is contained in:
parent
e1a1562664
commit
7214956ee6
|
@ -29,16 +29,20 @@ class ovn::northd(
|
|||
if $dbs_cluster_local_addr {
|
||||
$ovn_northd_opts_cluster_local_addr = "--db-nb-cluster-local-addr=${dbs_cluster_local_addr} \
|
||||
--db-sb-cluster-local-addr=${dbs_cluster_local_addr}"
|
||||
} else {
|
||||
$ovn_northd_opts_cluster_local_addr = undef
|
||||
}
|
||||
|
||||
if $dbs_cluster_remote_addr {
|
||||
$ovn_northd_opts_cluster_remote_addr = "--db-nb-cluster-remote-addr=${dbs_cluster_remote_addr} \
|
||||
--db-sb-cluster-remote-addr=${dbs_cluster_remote_addr}"
|
||||
} else {
|
||||
$ovn_northd_opts_cluster_remote_addr = undef
|
||||
}
|
||||
|
||||
$ovn_northd_opts = join([$ovn_northd_opts_addr,
|
||||
$ovn_northd_opts = join(delete_undef_values([$ovn_northd_opts_addr,
|
||||
$ovn_northd_opts_cluster_local_addr,
|
||||
$ovn_northd_opts_cluster_remote_addr],
|
||||
$ovn_northd_opts_cluster_remote_addr]),
|
||||
' ')
|
||||
|
||||
augeas { 'config-ovn-northd':
|
||||
|
|
|
@ -7,7 +7,7 @@ describe 'ovn::northd' do
|
|||
is_expected.to contain_augeas('config-ovn-northd').with({
|
||||
:context => platform_params[:ovn_northd_context],
|
||||
:changes => "set " + platform_params[:ovn_northd_option_name] +
|
||||
" '\"--db-nb-addr=0.0.0.0 --db-sb-addr=0.0.0.0 --db-nb-create-insecure-remote=yes --db-sb-create-insecure-remote=yes \"'",
|
||||
" '\"--db-nb-addr=0.0.0.0 --db-sb-addr=0.0.0.0 --db-nb-create-insecure-remote=yes --db-sb-create-insecure-remote=yes\"'",
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue