Ensure purge_config takes a boolean value

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

Change-Id: I1c48571be9068aa428bba38d99956a0f534888b9
This commit is contained in:
Takashi Kajinami 2023-07-13 22:08:42 +09:00
parent fd5058341b
commit 5e9c6de5aa
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class aodh (
$notification_transport_url = $facts['os_service_default'],
$notification_driver = $facts['os_service_default'],
$notification_topics = $facts['os_service_default'],
$purge_config = false,
Boolean $purge_config = false,
) inherits aodh::params {
include aodh::deps

View File

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