Actions
Bug #28929
closedsettings api accept different values than what it returns
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
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 5 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
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7430 added
Updated by Anonymous almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset e7196da24e2f6f048c2d014438a0ab40ad361550.
Actions