Ensure purge_config takes a boolean value

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

Change-Id: I82c9f4e6b7f407cdfb49fa8f804d233e0edc4fee
This commit is contained in:
Takashi Kajinami 2023-07-22 23:53:00 +09:00
parent c4a7787501
commit 3510c49d64
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class vitrage (
$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,
$snapshots_interval = $facts['os_service_default'],
$types = $facts['os_service_default'],
) inherits vitrage::params {

View File

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