Restrict provider schema version

The schema version 1.0 has been the only version supported by nova.
Reject any unsupported values using the data type validation.

Change-Id: Iac0e5fc735188abe882b2b2d82bcb807207ea7f1
This commit is contained in:
Takashi Kajinami
2025-02-24 00:00:09 +09:00
parent 086358d073
commit 4399291594

View File

@@ -67,7 +67,7 @@
# Defaults to 'provider.yaml'
#
class nova::compute::provider (
$schema_version = '1.0',
Enum['1.0'] $schema_version = '1.0',
Array[Hash[String[1], Any]] $custom_inventories = [],
Stdlib::Absolutepath $config_location = '/etc/nova/provider_config',
String[1] $config_file = 'provider.yaml',