Ensure purge_config takes a boolean value

The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: Id91663d36151d87c3d6e5de9130ea767c3c72095
This commit is contained in:
Takashi Kajinami 2023-07-22 23:51:42 +09:00
parent 2aba05239d
commit c36870fccf
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ class octavia (
$notification_driver = $facts['os_service_default'],
$notification_topics = $facts['os_service_default'],
$topic = 'octavia-rpc',
$purge_config = false,
Boolean $purge_config = false,
) inherits octavia::params {
include octavia::deps

View File

@ -52,7 +52,7 @@ class octavia::policy (
$policy_path = '/etc/octavia/policy.yaml',
$policy_default_rule = $facts['os_service_default'],
$policy_dirs = $facts['os_service_default'],
$purge_config = false,
Boolean $purge_config = false,
) {
include octavia::deps