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
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
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