puppet-horizon/types/availablethemes.pp
Takashi Kajinami 5a3245f9d4 Require valid type for available_themses
Currently, if a users gives invalid input type for available_themses,
the logic ignores the input and reflect nothing in the config file,
which can cause unexpected results. This ensures the given input is
a hash value.

This also adds validations to ensure only required values are included
by the hash.

Change-Id: I61aefe65e6218a79dce7a0633cb0ceb13b0021b4
2024-01-10 15:42:02 +00:00

7 lines
95 B
ObjectPascal

type Horizon::AvailableThemes = Optional[
Array[
Hash[String[1], String[1]],
1
]
]