Ensure purge_config takes a boolean value

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

Change-Id: I80c901f3081ef057980b8c736c65c43e4fd522b2
This commit is contained in:
Takashi Kajinami
2023-07-22 23:51:16 +09:00
parent d2c283570b
commit 126e871073
2 changed files with 2 additions and 2 deletions

View File

@@ -439,7 +439,7 @@ class nova(
$initial_cpu_allocation_ratio = $facts['os_service_default'],
$initial_ram_allocation_ratio = $facts['os_service_default'],
$initial_disk_allocation_ratio = $facts['os_service_default'],
$purge_config = false,
Boolean $purge_config = false,
$my_ip = $facts['os_service_default'],
$dhcp_domain = $facts['os_service_default'],
$instance_name_template = $facts['os_service_default'],

View File

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