settings api accept different values than what it returns
The settings api endpoint returns nicely typed settings: the get request returns arrays, hashes, integers and strings depending on the type of the setting.
When writing to the api endpoint however, the api only accepts string input, this makes it hard to properly ensure the state of a setting (trough for example puppet)
Updated by Simon Peeters almost 4 years ago
in ansible this gets worked around by using https://github.com/theforeman/foreman-ansible-modules/blob/c70b9316ae736da5e675915183c5e908fca79b18/plugins/module_utils/foreman_helper.py#L1087 when writing