Commit Graph

3 Commits

Author SHA1 Message Date
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
Tobias Urdin a0f8f374b8 Remove os_any2array function
This function was implemented instead of using the
any2array function that stdlib exposes because before
people were using older versions of stdlib.

This function has now been available since stdlib 4.0.0
which is ealier 2013, we should now assume that people
have a sufficient version of stdlib and can remove the
custom os_any2array function we were carrying.

Change-Id: Ia1df93e480ec3137c138ee87d39f5d0ce432722c
2018-10-30 15:47:18 +01:00
Chris Hoge 8115642f4d Vendor any2array function to support stdlib 3.2
Many installations are pinned to stdlib 3.2. This change vendors
the any2arry function from stdlib 4 until Puppet Enterprise
catches up. At that point the vendored function will be removed.

Change-Id: Ide8a9c526ba36a0641c0e118c3280be0e766bd14
2014-05-02 14:28:13 -07:00